コード例 #1
0
 /**
  * Constructor
  *
  * @param int $task_id
  * @param string $comment
  * @param bool $mark100
  */
 public function __construct($task_id, $comment, $mark100 = true)
 {
     $params = array();
     $params['comment'] = $comment;
     $params['mark100'] = $mark100;
     parent::__construct($task_id, $params);
 }
コード例 #2
0
 /**
  * Constructor
  *
  * @param string $user_name
  */
 public function __construct($user_name)
 {
     parent::__construct($user_name);
 }
コード例 #3
0
ファイル: api.php プロジェクト: negram/flyspray
 /**
  * Normalizes command, cast stdClass to FlySprayCommand
  *
  * @param stdClass $cmd
  * @return FlySprayCommand
  */
 private function &normalize_command(stdClass $cmd)
 {
     $ncmd = new FlySprayCommand();
     if (!$ncmd->cast_from_stdclass($cmd)) {
         throw new Exception('Failed to cast command', API_ECODE_COMMANDCAST);
     }
     return $ncmd;
 }
コード例 #4
0
 /**
  * Constructor
  *
  * @param string $user_name
  * @param array $tasks
  */
 public function __construct($user_name, array $tasks)
 {
     parent::__construct($user_name, $tasks);
 }
コード例 #5
0
 /**
  * Constructor
  *
  * @param int $task_id
  * @param array $args
  */
 public function __construct($task_id, array $args)
 {
     parent::__construct($task_id, $args);
 }
コード例 #6
0
 /**
  * Constructor
  *
  * @param int $group_id
  * @param array $users
  */
 public function __construct($group_id, array $users)
 {
     parent::__construct($group_id, $users);
 }
コード例 #7
0
 /**
  * Constructor
  *
  * @param int $user_id
  * @param int $tasks_id
  */
 public function __construct($user_id, $task_id)
 {
     parent::__construct($user_id, array($task_id));
 }