本文整理汇总了PHP中ExtraFields::load方法的典型用法代码示例。如果您正苦于以下问题:PHP ExtraFields::load方法的具体用法?PHP ExtraFields::load怎么用?PHP ExtraFields::load使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ExtraFields
的用法示例。
在下文中一共展示了ExtraFields::load方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ExtraFields
/**
* Constructor de la classe
*
* @param DoliDb $db Database handler
*/
function __construct($db) {
$this->db = $db;
parent::__construct($db);
$fk_extrafields = new ExtraFields($db);
$this->fk_extrafields = $fk_extrafields->load("extrafields:" . get_class($this), true); // load and cache
$this->couchAdmin = new couchAdmin($this->couchdb);
return 0;
}
示例2: catch
function __construct($db)
{
global $couch;
parent::__construct($db);
try {
$this->global = $couch->getDoc("const");
} catch (Exception $e) {
dol_print_error('', "Error : no const document in database" . $e->getMessage());
}
$fk_extrafields = new ExtraFields($db);
$this->fk_extrafields = $fk_extrafields->load("extrafields:DolibarrModules", true);
// load and cache
}
示例3: __construct
/**
* Constructor
*
* @param Client $db Database handler
*/
public function __construct($db) {
parent::__construct($db);
try {
$fk_extrafields = new ExtraFields($db);
$this->fk_extrafields = $fk_extrafields->load("extrafields:" . get_class($this), true); // load and cache
$this->fk_country = $this->couchdb->getDoc("dict:fk_country"); //load country table
} catch (Exception $e) {
$error = "Something weird happened: " . $e->getMessage() . " (errcode=" . $e->getCode() . ")\n";
print $error;
exit;
}
return 1;
}
示例4: ExtraFields
/**
* Constructor
*
* @param DoliDB $db Database handler
*/
function __construct($db)
{
parent::__construct($db);
try {
$this->couchdb->useDatabase('adherent');
$fk_extrafields = new ExtraFields($db);
$fk_extrafields->useDatabase('adherent');
$this->fk_extrafields = $fk_extrafields->load("extrafields:" . get_class($this), true);
// load and cache
} catch (Exception $e) {
dol_print_error('', $e->getMessage());
exit;
}
return 1;
}
示例5:
print_fiche_titre($langs->trans("CompanySetup"),$linkback,'setup');
$head = societe_admin_prepare_head(null);
dol_fiche_head($head, 'attributes', $langs->trans("ThirdParty"), 0, 'company');
print $langs->trans("DefineHereComplementaryAttributes",$textobject).'<br>';
print '<br>';
dol_htmloutput_errors($mesg);
// Load attribute_label
try {
$extrafields->load("extrafields:".$elementtype);
}
catch (Exception $e) {
$error="Something weird happened: ".$e->getMessage()." (errcode=".$e->getCode().")\n";
dol_syslog("societe::load ".$error, LOG_ERR);
print $error;
exit;
}
/* ************************************************************************** */
/* */
/* Creation d'un champ optionnel
/* */
/* ************************************************************************** */
if ($action == 'create')
示例6: ExtraFields
/**
* Constructor de la classe
*
* @param DoliDb $db Database handler
*/
function __construct($db) {
$this->db = $db;
parent::__construct($db);
$fk_extrafields = new ExtraFields($db);
try {
$this->fk_extrafields = $fk_extrafields->load("extrafields:" . get_class($this), true); // load and cache
} catch (Exception $e) {
}
$this->couchAdmin = new couchAdmin($this->couchdb);
$this->useDatabase("_users");
// Preference utilisateur
$this->liste_limit = 0;
$this->clicktodial_loaded = 0;
$this->all_permissions_are_loaded = 0;
$this->admin = 0;
$this->conf = (object) array();
$this->rights = (object) array();
$this->rights->user = (object) array();
$this->rights->user->user = (object) array();
$this->rights->user->self = (object) array();
}
示例7: ExtraFields
/**
* Constructor
*
* @param DoliDB $db Database handler
*/
function __construct($db)
{
parent::__construct($db);
try {
$fk_extrafields = new ExtraFields($db);
$this->fk_extrafields = $fk_extrafields->load("extrafields:" . get_class($this), true);
// load and cache
} catch (Exception $e) {
dol_print_error('', $e->getMessage());
exit;
}
$this->Status = 0;
// l'adherent n'est pas public par defaut
$this->public = 0;
// les champs optionnels sont vides
$this->array_options = array();
return 1;
}