<div dir="ltr"><div>Would <a href="http://php.net/manual/en/function.spl-autoload-register.php">prepending</a> the custom loader help?</div><div><div><br></div><div>Regards,</div><div>Prasad</div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">--</div><div dir="ltr"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><a href="http://www.facebook.com/vtiger" style="color:rgb(0,0,204)" target="_blank">FB</a> I </span><a href="http://twitter.com/vtigercrm" style="color:rgb(0,0,204)" target="_blank">Twit</a> I <a href="https://www.linkedin.com/company/1270573?trk=tyah" style="color:rgb(0,0,204)" target="_blank">LIn</a> I <a href="https://blogs.vtiger.com" style="color:rgb(0,0,204)" target="_blank">Blog</a> I <a href="https://www.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Website</a></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Tue, Jul 14, 2015 at 5:15 AM, Hamono, Chris (DPC) <span dir="ltr"><<a href="mailto:Chris.Hamono@sa.gov.au" target="_blank">Chris.Hamono@sa.gov.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-AU" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks Blazej <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Vtigers embedded “new self()” calls prevent a psr-4 compliant autoloader from working as the loader will not be called when instantiating the class<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Chris<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:vtigercrm-developers-bounces@lists.vtigercrm.com" target="_blank">vtigercrm-developers-bounces@lists.vtigercrm.com</a> [mailto:<a href="mailto:vtigercrm-developers-bounces@lists.vtigercrm.com" target="_blank">vtigercrm-developers-bounces@lists.vtigercrm.com</a>] <b>On Behalf Of </b>Blazej Pabiszczak<span class=""><br><b>Sent:</b> Monday, 13 July 2015 6:42 PM<br><b>To:</b> <a href="mailto:vtigercrm-developers@lists.vtigercrm.com" target="_blank">vtigercrm-developers@lists.vtigercrm.com</a><br><b>Subject:</b> Re: [Vtigercrm-developers] Vtiger Class Loader?<u></u><u></u></span></span></p></div></div><p class="MsoNormal"><u></u> <u></u></p><p><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><a href="http://www.php-fig.org/psr/psr-4/" target="_blank">http://www.php-fig.org/psr/psr-4/</a> <u></u><u></u></span></p><div><div class="h5"><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">---<u></u><u></u></span></p><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">Z poważaniem / Regards<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> <u></u><u></u></span></p></div><div><p class="MsoNormal"><strong><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">Błażej Pabiszczak</span></strong><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><u></u><u></u></span></p></div><div><p class="MsoNormal"><em><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">Chief Executive Officer</span></em><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">M: +48.884999123<br>E: <a href="mailto:b.pabiszczak@yetiforce.com" title="Mail do Błażej Pabiszczak" target="_blank">b.pabiszczak@yetiforce.com</a><u></u><u></u></span></p></div><div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><hr size="2" width="100%" align="center"></span></div><p><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">We created an innovative open source project called YetiForceCRM. You can test it <a href="https://test.yetiforce.com" target="_blank">here</a>, <a href="https://github.com/YetiForceCompany/YetiForceCRM" target="_blank">download</a> it for free or read its <a href="https://yetiforce.com/en/documentation.html" target="_blank">documentation</a>. Follow us on <a href="https://twitter.com/YetiForceEN" target="_blank">Twitter</a> to get real-time info about new functionalities and articles.<u></u><u></u></span></p></div><p><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> <u></u><u></u></span></p><p><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">W dniu 2015-07-13 10:11, Joe Bordes napisał(a):<u></u><u></u></span></p><blockquote style="border:none;border-left:solid #1010ff 1.5pt;padding:0cm 0cm 0cm 5.0pt;margin-left:0cm;margin-right:0cm"><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">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ó: <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">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" target="_blank">vtigercrm-developers-bounces@lists.vtigercrm.com</a> [mailto:<a href="mailto:vtigercrm-developers-bounces@lists.vtigercrm.com" target="_blank">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" target="_blank">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/" target="_blank">http://www.vtiger.com/</a><br><br>_______________________________________________<br><a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><br>_______________________________________________<br><a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><u></u><u></u></span></p></div></blockquote></div></div></div></div><br>_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br></div>