本文整理汇总了PHP中Basic::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Basic::__construct方法的具体用法?PHP Basic::__construct怎么用?PHP Basic::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Basic
的用法示例。
在下文中一共展示了Basic::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/** Constructor
*
* @param array $conf
*/
public function __construct($conf)
{
parent::__construct($conf);
Trace::add_trace('construct class', __METHOD__);
$this->author = isset(self::$conf['general']['author']) ? self::$conf['general']['author'] : '';
$this->version = isset(self::$conf['general']['app_version']) ? self::$conf['general']['app_version'] : '';
}
示例2:
function __construct()
{
$this->table = new fpp_client_Model();
$this->id_client = (int) @$_SESSION['conf']['client']['id'];
self::$id_cliente = $this->id_client;
parent::__construct();
}
示例3:
function __construct()
{
parent::__construct();
$this->load_report_beans();
require_once 'modules/AOW_WorkFlow/aow_utils.php';
require_once 'modules/AOR_Reports/aor_utils.php';
}
示例4: __construct
public function __construct($conf)
{
parent::__construct($conf);
Trace::add_trace('construct class', __METHOD__);
$this->user_ip = $this->get_ip_address();
$this->is_loged();
}
示例5: __construct
public function __construct()
{
parent::__construct();
// initialize currency
$currency = SugarCurrency::getBaseCurrency();
$this->currency_id = $currency->id;
$this->base_rate = $currency->conversion_rate;
}
示例6: __construct
public function __construct($init = true)
{
parent::__construct();
if ($init) {
$this->load_flow_beans();
require_once 'modules/AOW_WorkFlow/aow_utils.php';
}
}
示例7: __construct
public function __construct()
{
parent::__construct();
global $sugar_config;
if (!$sugar_config['require_accounts']) {
unset($this->required_fields['account_name']);
}
$this->setupCustomFields('Cases');
foreach ($this->field_defs as $name => $field) {
$this->field_name_map[$name] = $field;
}
}
示例8: explode
function __construct()
{
$this->home_category = (int) Kohana::config("core.index_category");
$this->separator_price = Kohana::config("core.separator_price");
$this->max_items_per_category = (int) Kohana::config("core.category_max_items");
$this->table = new fpp_category_Model();
$arrayg = explode(",", $this->table->group_category);
foreach ($arrayg as $key => $value) {
$this->metacategories[$value] = $value;
}
$this->i18n->category = 'category';
$this->i18n->pagination = 'pagina';
parent::__construct();
}
示例9:
function __construct()
{
$this->table = new fpp_product_Model();
parent::__construct();
}
示例10: __construct
/**
* Constructor for the Activity bean.
*
* Override SugarBean's constructor so that we can create a comment bean as
* a property of this object.
*/
public function __construct()
{
parent::__construct();
$this->last_comment_bean = BeanFactory::getBean('Comments');
}
示例11: __construct
/**
* Job constructor.
*/
public function __construct()
{
parent::__construct();
$this->disable_row_level_security = true;
if (!empty($GLOBALS['sugar_config']['jobs']['min_retry_interval'])) {
$this->min_interval = $GLOBALS['sugar_config']['jobs']['min_retry_interval'];
}
}
示例12: __construct
public function __construct($type = "created")
{
parent::__construct('easy_audit.doctrine.entity.' . $type);
}
示例13: __construct
public function __construct()
{
parent::__construct();
$this->emailAddress = BeanFactory::getBean('EmailAddresses');
}
示例14: __construct
public function __construct($db, $id = 0)
{
parent::__construct($db, $id);
$this->mainDB = new DBAdapter2(array('host' => MAIN_HOST, 'username' => MAIN_USERNAME, 'password' => MAIN_PASSWORD, 'schema' => MAIN_SCHEMA));
}
示例15: __construct
/**
* Job constructor.
*/
public function __construct()
{
parent::__construct();
if (!empty($GLOBALS['sugar_config']['jobs']['min_retry_interval'])) {
$this->min_interval = $GLOBALS['sugar_config']['jobs']['min_retry_interval'];
}
}