public function GalleryAssistPager::__construct in Gallery Assist 7
Same name in this branch
- 7 libs/classes/GalleryAssistPager.php \GalleryAssistPager::__construct()
- 7 libs/classes/GalleryAssistPager.inc \GalleryAssistPager::__construct()
- 7 libs/classes/GalleryAssistPager_ORIG.inc \GalleryAssistPager::__construct()
File
- libs/
classes/ GalleryAssistPager.inc, line 8
Class
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);
}