[Vtigercrm-developers] Bug in Vtiger_Loader class?

Vikas Jain vikas at vtiger.com
Mon Oct 3 05:50:37 GMT 2016


Alan,

I just tried with Settings:Groups

$name = 'Settings:Groups';
> print_r(Settings_Vtiger_Module_Model::getInstance($name));


and this is the response I got

 Settings_Groups_Module_Model Object
> (
>     [baseTable] => vtiger_groups
>     [baseIndex] => groupid
>     [listFields] => Array
>         (
>             [groupname] => Name
>             [description] => Description
>         )
>     [name] => Groups
>     [nameFields] => Array
>         (
>             [0] => name
>         )
>     [valueMap:protected] => Array
>         (
>         )
> )


It is working for me.

On 30 September 2016 at 20:43, Alan Lord <alanslists at gmail.com> wrote:

> Around line 124 of the class in the getComponentClassName function I see:
>
> if($baseModule == 'Settings')  $baseModule = 'Settings:Vtiger';
>>
>
> I think this means that whatever name I pass into
>
> Settings_Vtiger_Module_Model::getInstance($name)
>
> e.g. $name = "Settings:MyModuleName"
>
> It will always return the Settings_Vtiger_Module_Model.
>
> Am I right?
>
> I was hoping to dynamically load some Settings modules using a standard
> mechanism but couldn't work out why they were always getting loaded as
> Vtiger!
>
> Cheers
>
> Al
>
>
> _______________________________________________
> http://www.vtiger.com/
>



-- 
Regards
Vikas
Vtiger Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20161003/dbed6ec4/attachment.html>


More information about the vtigercrm-developers mailing list