当前位置: 首页>>代码示例>>PHP>>正文


PHP ExtraFields::load方法代码示例

本文整理汇总了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;
	}
开发者ID:nrjacker4,项目名称:crm-php,代码行数:18,代码来源:userdatabase.class.php

示例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
 }
开发者ID:nrjacker4,项目名称:crm-php,代码行数:13,代码来源:DolibarrModules.class.php

示例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;
	}
开发者ID:nrjacker4,项目名称:crm-php,代码行数:21,代码来源:societe.class.php

示例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;
 }
开发者ID:nrjacker4,项目名称:crm-php,代码行数:20,代码来源:adherent_card.class.php

示例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')
开发者ID:nrjacker4,项目名称:crm-php,代码行数:31,代码来源:societe_extrafields.php

示例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();
    }
开发者ID:nrjacker4,项目名称:crm-php,代码行数:35,代码来源:user.class.php

示例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;
 }
开发者ID:nrjacker4,项目名称:crm-php,代码行数:23,代码来源:adherent.class.php


注:本文中的ExtraFields::load方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。