function __construct($notice, $out = null, $terms)
 {
     parent::__construct($notice, $out);
     $this->terms = $terms;
 }
Beispiel #2
0
 /**
  * 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;
 }
Beispiel #3
0
 /**
  * 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;
 }
Beispiel #5
0
 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;
 }