Пример #1
0
 /**
  * survey constructor that calls parent constructor
  *
  * @param string $action string that represent the action to execute 'add', 'mod' or 'del'
  * @param int $id node id
  */
 public function __construct($action, $id = null)
 {
     parent::__construct($action, $id);
     $this->mode = ADA_TYPE_SURVEY;
     $this->what = translateFN('sondaggio');
 }
Пример #2
0
 /**
  * test constructor that calls parent constructor
  *
  * @param string $action string that represent the action to execute 'add', 'mod' or 'del'
  * @param int $id node id
  */
 public function __construct($action, $id = null)
 {
     parent::__construct($action, $id);
     $this->mode = ADA_TYPE_TEST;
     $this->what = translateFN('test');
 }