forked from Wavyzz/dolibarr
More comments
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
* \file htdocs/core/class/commonobject.class.php
|
||||
* \ingroup core
|
||||
* \brief File of parent class of all other business classes (invoices, contracts, proposals, orders, ...)
|
||||
* \version $Id: commonobject.class.php,v 1.142 2011/07/01 16:58:09 hregis Exp $
|
||||
* \version $Id: commonobject.class.php,v 1.143 2011/07/01 23:05:39 eldy Exp $
|
||||
*/
|
||||
|
||||
|
||||
@@ -1431,8 +1431,8 @@ class CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* Instantiate hooks of thirdparty module
|
||||
* @param $type Type of hook
|
||||
* Init array this->hooks with instantiated controler and/or dao
|
||||
* @param arraytype Array list of hooked tab/features. For example: thirdpartytab, ...
|
||||
*/
|
||||
function callHooks($arraytype)
|
||||
{
|
||||
@@ -1458,9 +1458,11 @@ class CommonObject
|
||||
$this->hooks[$i]['type']=$type;
|
||||
|
||||
// Include actions class (controller)
|
||||
//print 'include '.$path.$actionfile."\n";
|
||||
$resaction=dol_include_once($path.$actionfile);
|
||||
|
||||
// Include dataservice class (model)
|
||||
//print 'include '.$path.$daofile."\n";
|
||||
$resdao=dol_include_once($path.$daofile);
|
||||
|
||||
// Instantiate actions class (controller)
|
||||
@@ -1471,6 +1473,7 @@ class CommonObject
|
||||
$this->hooks[$i]['modules'][$objModule->module_number] = $objModule;
|
||||
}
|
||||
|
||||
// FIXME storing dao is useless here. It's goal of controller to known which dao to manage
|
||||
if ($resdao)
|
||||
{
|
||||
// Instantiate dataservice class (model)
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
* \ingroup core
|
||||
* \brief Fichier de la classe de stockage de la config courante
|
||||
* \remarks La config est stockee dans le fichier conf/conf.php
|
||||
* \version $Id$
|
||||
* \version $Id: conf.class.php,v 1.59 2011/07/01 23:06:06 eldy Exp $
|
||||
*/
|
||||
|
||||
|
||||
@@ -153,7 +153,7 @@ class Conf
|
||||
$modulename = strtolower($reg[1]);
|
||||
$this->login_method_modules[] = DOL_DOCUMENT_ROOT.'/'.$modulename.'/inc/login/';
|
||||
}
|
||||
// If this is constant for hook activated by a module
|
||||
// If this is constant for hook activated by a module. Value is list of hooked tabs separated with :
|
||||
elseif (preg_match('/^MAIN_MODULE_([A-Z_]+)_HOOKS$/i',$key,$reg))
|
||||
{
|
||||
$modulename = strtolower($reg[1]);
|
||||
|
||||
Reference in New Issue
Block a user