本文整理匯總了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();
}