You are here

public function GalleryAssistPager::__construct in Gallery Assist 7

Same name in this branch
  1. 7 libs/classes/GalleryAssistPager.php \GalleryAssistPager::__construct()
  2. 7 libs/classes/GalleryAssistPager.inc \GalleryAssistPager::__construct()
  3. 7 libs/classes/GalleryAssistPager_ORIG.inc \GalleryAssistPager::__construct()

File

libs/classes/GalleryAssistPager.inc, line 8

Class

GalleryAssistPager

Code

public function __construct($node) {

  #global $_DB, $_CONFIG;
  $this->node = $node;
  $this->total = count($node->ga_items_ids);
  $this->ids = $node->ga_items_ids;
  $this->conf = $node->ga_conf[$node->type];
  $this->quantity = $this->conf['pager_quantity'];
  $this->theme = variable_get('theme_default', FALSE);
  $this->pager_layout = $this->conf['pager_theme'];
  $this->max_visble = $this->conf['pager_quantity'] < $this->total ? $this->conf['pager_quantity'] : $this->total + 2;

  //    dsm($this->ids);
}