本文整理汇总了PHP中Section::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Section::__construct方法的具体用法?PHP Section::__construct怎么用?PHP Section::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Section
的用法示例。
在下文中一共展示了Section::__construct方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct(array $values)
{
parent::__construct($values, 'POINTS', 0);
}
示例2: __construct
/**
*/
public function __construct()
{
parent::__construct('tbody');
}
示例3: __construct
/**
*
*/
public function __construct($domain, $section, $variable)
{
parent::__construct($domain, $section);
$this->variable = $variable;
}
示例4:
function __construct($view = false, $vars = false, $data = false)
{
parent::__construct($view, $vars);
$this->data['options'] = $this->getOptions($data);
$this->render();
}
示例5:
function __construct($action, $text)
{
parent::__construct($action);
$this->text = $text;
}
示例6: __construct
public function __construct(array $values)
{
parent::__construct($values, 'MYCOLLECTIONS');
}
示例7: findController
function __construct($view = false, $vars = false, $data = false)
{
parent::__construct($view, $vars);
// find the requested controller from the path
$class = findController($this->data["vars"]["path"]);
// get the data for the specific URI
$this->data['items'] = $class::getBody($this->data["vars"]["path"]);
// currently override the view set by the parent section class
//$this->view = ( $view ) ? getPath('views/'.$class.'/body-'.$view.'.php') : getPath('views/'.$class.'/body.php');
$this->view = getPath('views/' . strtolower($class) . '/body.php');
// render the section
$this->render();
}