本文整理汇总了PHP中Category::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Category::__construct方法的具体用法?PHP Category::__construct怎么用?PHP Category::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Category
的用法示例。
在下文中一共展示了Category::__construct方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Construct.
*
* @param array $options Class instances.
*/
public function __construct(array $options = [])
{
parent::__construct($options);
$this->categorizeForeign = $this->pdo->getSetting('categorizeforeign') == "0" ? false : true;
$this->catWebDL = $this->pdo->getSetting('catwebdl') == "0" ? false : true;
$this->regexes = new Regexes(['Settings' => $this->pdo, 'Table_Name' => 'category_regexes']);
}
示例2:
function __construct($id, $cat_vin)
{
parent::__construct($id);
$this->type = 'sous-region';
$this->data = "id_sous_region={$id}";
$this->category = $cat_vin;
$this->set_label();
}
示例3:
function __construct($data)
{
parent::__construct($data['id']);
$this->id = $data['id'];
$this->data = $data['id'];
$this->label = $data['label'];
$this->type = $data['type'];
}
示例4: _construct
public function _construct()
{
parent::__construct();
}
示例5: __construct
/**
* Group does not need Sluggable behavior
* @param int $id
* @param string $table
* @param string $ds
*/
public function __construct($id = false, $table = null, $ds = null)
{
parent::__construct($id, $table, $ds);
$this->Behaviors->unload('Utils.Sluggable');
}
示例6: __construct
public function __construct()
{
parent::__construct();
$this->output->set_header('Content-Type: application/json; charset=utf-8');
}
示例7:
/**
* Set data related to t_category table
*/
function __construct()
{
parent::__construct(RESTDAO_DEF_LANGUAGE);
}
示例8: __construct
/**
* Construct.
*
* @param array $options Class instances.
*/
public function __construct(array $options = array())
{
parent::__construct($options);
$this->categorizeForeign = $this->pdo->getSetting('categorizeforeign') == "0" ? false : true;
$this->catWebDL = $this->pdo->getSetting('catwebdl') == "0" ? false : true;
}