public function __construct($values = array()) { parent::__construct($values); if (!count($this)) { $this->mergeDefault(); } }
public function __construct($currentPage = null, $url = null) { parent::__construct(); if (!is_null($currentPage)) { $this[CURRENT_PAGE] = $currentPage; $p = \PMVC\plug('pagination'); $copyForm = clone $p['page']; unset($copyForm[BEGIN]); $p->process($this, $copyForm); $this[TYPE] = $copyForm[TYPE]; } if (!is_null($url)) { $this[URL] = $url; } }
function __construct($url = null) { parent::__construct(null); $this->set($url); }
public function __construct($str) { parent::__construct(); $this->rawDocBlock = $str; $this->parse(); }