<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p><a href="http://www.php-fig.org/psr/psr-4/">http://www.php-fig.org/psr/psr-4/</a> </p>
<div>---<br />
<div>Z poważaniem / Regards</div>
<div> </div>
<div><strong>Błażej Pabiszczak</strong></div>
<div><em>Chief Executive Officer</em></div>
<div>M: +48.884999123<br />E: <a title="Mail do Błażej Pabiszczak" href="mailto:b.pabiszczak@yetiforce.com">b.pabiszczak@yetiforce.com</a></div>
<hr />
<p><span>We created an innovative open source project called YetiForceCRM. You can test it </span><a href="https://test.yetiforce.com" rel="noreferrer">here</a><span>, </span><a href="https://github.com/YetiForceCompany/YetiForceCRM" rel="noreferrer">download</a><span> it for free or read its </span><a href="https://yetiforce.com/en/documentation.html" rel="noreferrer">documentation</a><span>. Follow us on </span><a href="https://twitter.com/YetiForceEN" rel="noreferrer">Twitter</a><span> to get real-time info about new functionalities and articles.</span></p>
</div>
<p> </p>
<p>W dniu 2015-07-13 10:11, Joe Bordes napisał(a):</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">You may be interested in aspect oriented programming. Search for it in Google, there is a lot of information and there are some very good libraries already implemented for PHP and Javascript.<br /><br /> HTH<br /> Joe<br /> TSolucio<br /><br /><br /> El 13/⁠07/⁠15 a las 08:46, Hamono, Chris (DPC) escribió:
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">I was thinking about this request because I'd like to be able to override built in (core) classes to extend their functionality.<br /><br /> I know this is not your specific use case but I thought I'd make the point vtiger extensively uses "new self()" within static functions<br /><br /> This means even if you replaced the current loader with a new loader that created a custom class most of the time the parent class will be created and your code never called.<br /><br /> More is the pity. I saw this as a possible way to shortcut the creation of custom classes where you want to slightly manipulate functionality rather than recreate it.<br /><br /> Chris<br /><br /><br /> -⁠-⁠-⁠-⁠-⁠Original Message-⁠-⁠-⁠-⁠-⁠<br /> From: <a href="mailto:vtigercrm-developers-bounces@lists.vtigercrm.com">vtigercrm-developers-bounces@lists.vtigercrm.com</a> [mailto:<a href="mailto:vtigercrm-developers-bounces@lists.vtigercrm.com">vtigercrm-developers-bounces@lists.vtigercrm.com</a>] On Behalf Of Alan Lord<br /> Sent: Thursday, 18 June 2015 12:21 AM<br /> To: <a href="mailto:vtigercrm-developers@lists.vtigercrm.com">vtigercrm-developers@lists.vtigercrm.com</a><br /> Subject: [Vtigercrm-⁠developers] Vtiger Class Loader?<br /><br /> I might have a need to have an Autoloader within a custom module so my code can find a bunch of class files in an included library of php code.<br /><br /> So for example my tree would like like<br /><br /> /⁠modules/⁠LSCustomModule/⁠{models,actions,resources,libraries} etc.<br /><br /> In the model I would need to use code that is in an associated library (built to use any PSR-⁠0 compliant autoloader) under my "libraries"<br /> directory.<br /><br /> I don't think the in-⁠built Vtiger_Loader is going to suffice is it because the paths will be all wrong...?<br /><br /> Would I need to I register my own Autoloader as part of the initialisation of my model? Could I override the Vtiger_Loader?<br /><br /> Suggestions welcome ;-⁠)<br /><br /> Thanks<br /><br /> Al<br /><br /><br /> _______________________________________________<br /><a href="http://www.vtiger.com/">http://www.vtiger.com/</a><br /><br /> _______________________________________________<br /><a href="http://www.vtiger.com/">http://www.vtiger.com/</a></blockquote>
<br /> _______________________________________________<br /><a href="http://www.vtiger.com/">http://www.vtiger.com/</a></div>
</blockquote>
</body></html>