function __construct($notice, $out = null, $terms) { parent::__construct($notice, $out); $this->terms = $terms; }
/** * constructor * * Also initializes the profile attribute. * * @param Notice $notice The notice we'll display */ function __construct($notice, $out = null, $question, $answer) { parent::__construct($notice, $out); $this->question = $question; $this->answer = $answer; }
/** * constructor * * Also initializes the profile attribute. * * @param Notice $notice The notice we'll display */ function __construct($notice, $out = null) { parent::__construct($notice, $out); }
function __construct(Notice $notice, Action $out, $cnt) { parent::__construct($notice, $out); $this->cnt = $cnt; }
function __construct($notice, $out = null) { parent::__construct($notice, $out); //TODO: Rewrite this //Showing number of favorites $fave = new Fave(); $fave->notice_id = $this->notice->id; $cnt = 0; if ($fave->find()) { while ($fave->fetch()) { $cnt++; } } $this->faves = $cnt; }