本文整理汇总了PHP中Common\Model\CommonModel::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP CommonModel::__construct方法的具体用法?PHP CommonModel::__construct怎么用?PHP CommonModel::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Common\Model\CommonModel
的用法示例。
在下文中一共展示了CommonModel::__construct方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($name = '', $tablePrefix = '', $connection = '')
{
parent::__construct($name = '', $tablePrefix = '', $connection = '');
$this->AUTH_NODE_FLAGS = array(array('id' => '1', 'label' => __('common.Everybody')), array('id' => '2', 'label' => __('common.Self only')), array('id' => '3', 'label' => __('common.Self and directly subordinate')), array('id' => '4', 'label' => __('common.Self and all subordinate')), array('id' => '5', 'label' => __('common.Self department')), array('id' => '6', 'label' => __('common.Self department and it\'s subordinate department')), array('id' => '0', 'label' => '|---' . __('common.Confirm APP supported under this')), array('id' => '7', 'label' => __('common.Self Headed Only')), array('id' => '8', 'label' => __('common.Self and directly subordinate Headed')), array('id' => '9', 'label' => __('common.Self and all subordinate Headed')));
}
示例2: __construct
public function __construct()
{
parent::__construct();
$this->main_model = model_alias_to_name($this->main_model_alias);
$this->detail_model = model_alias_to_name($this->detail_model_alias);
}
示例3: __construct
public function __construct($name = '', $tablePrefix = '', $connection = '')
{
parent::__construct($name, $tablePrefix, $connection);
$this->save_path = ENTRY_PATH . '/uploads';
}