示例#1
0
文件: rating.php 项目: anqh/core
 /**
  * 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;
 }
示例#2
0
文件: page.php 项目: anqh/core
 /**
  * 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());
 }
示例#3
0
文件: friend.php 项目: anqh/anqh
 /**
  * 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;
 }
示例#4
0
文件: pagination.php 项目: anqh/anqh
 /**
  * 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();
 }
示例#5
0
 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);
 }
示例#6
0
 public function __construct(&$glObj, $location)
 {
     parent::__construct($glObj, $location);
 }
示例#7
0
文件: smileys.php 项目: anqh/anqh
 /**
  * Create new view.
  *
  * @param  Model_
  */
 public function __construct($dom_target = null)
 {
     parent::__construct();
     $this->dom_target = $dom_target;
 }
示例#8
0
 /**
  * @see parent::getLayoutDir()
  */
 protected function getLayoutDir()
 {
     return parent::getLayoutDir() . '/frontend';
 }