Exemplo n.º 1
0
 function __construct($notice, $out = null, $terms)
 {
     parent::__construct($notice, $out);
     $this->terms = $terms;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }