public function __construct() { parent::__construct(); $cookie = new dynamic__cookie(); $cookie->inner_set('visit.post', time(), false); $this->per_page = sets::pp('post'); }
public function __construct() { parent::__construct(); if (sets::user('rights')) { $this->side_modules['top'][] = 'add_bar'; } $this->per_page = sets::pp('news'); }
protected function display_show($url) { parent::display_show($url); if ($url[3] == 'batch') { foreach ($this->data['items'] as $item) { $item->set_display_object('thumb'); } } }