/** * New task contructor * * @param string $name */ public function __construct($name = NULL) { parent::__construct('cron'); $name && ($this->name = $name); $name && $this->find(); }
/** * Constructor */ public function __construct() { parent::__construct('pages'); }