/** * Create new view. * * @param integer $total Total rate score * @param integer $count Total rate count * @param boolean $score Show score */ public function __construct($total, $count, $score = false) { parent::__construct(); $this->total = $total; $this->count = $count; $this->score = $score; }
/** * Create new page. * * @param string $title Page title */ public function __construct($title = null) { parent::__construct(); if ($title) { $this->title = $title; } // Get base URL $this->base = URL::base(!Request::current()->is_initial()); }
/** * Create new view. * * @param mixed $user Light user array * @param integer $common Common friends */ public function __construct($user = null, $common = null) { parent::__construct(); if ($user instanceof Model_User) { $user = $user->light_array(); } $this->user = $user; $this->common = $common; }
/** * Create new pagination. * * @param array $setup */ public function __construct(array $setup = null) { parent::__construct(); if ($setup) { foreach ($setup as $key => $value) { $this->{$key} = $value; } } $this->setup(); }
public function __construct(&$glObj, $location, $ResOnPage = 10, $Ecount = 0, $page = 1, $link = '') { $this->mResOnPage = $ResOnPage; $this->mEcount = $Ecount; //total number of items $this->mPageLink = $link; $this->mPageMax = 8; if (!is_numeric($page) || $page == 0) { $page = 1; } $this->mPage = $page; parent::__construct($glObj, $location); }
public function __construct(&$glObj, $location) { parent::__construct($glObj, $location); }
/** * Create new view. * * @param Model_ */ public function __construct($dom_target = null) { parent::__construct(); $this->dom_target = $dom_target; }
/** * @see parent::getLayoutDir() */ protected function getLayoutDir() { return parent::getLayoutDir() . '/frontend'; }