/** * initialization of some parameters */ public function init($request) { parent::init($request); $this->url = $request['url']; if ((int) $request['limit'] > 0) { $this->limit = (int) $request['limit']; } }
/** * initialization of some parameters */ public function init($request) { parent::init($request); $this->location = $request['location']; if (!isset($request['sunrise'])) { $request['sunrise'] = 6; } if (!isset($request['sunset'])) { $request['sunset'] = 20; } if (date('H') <= $request['sunrise'] || date('H') >= $request['sunset']) { $this->icon_sm = 'moon_'; } }
/** * initialization of some parameters */ public function init($request) { parent::init($request); $this->count = $request['count']; }