/** * 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); }
/** * Constructor * * @param string $user_name */ public function __construct($user_name) { parent::__construct($user_name); }
/** * 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; }
/** * Constructor * * @param string $user_name * @param array $tasks */ public function __construct($user_name, array $tasks) { parent::__construct($user_name, $tasks); }
/** * Constructor * * @param int $task_id * @param array $args */ public function __construct($task_id, array $args) { parent::__construct($task_id, $args); }
/** * Constructor * * @param int $group_id * @param array $users */ public function __construct($group_id, array $users) { parent::__construct($group_id, $users); }
/** * Constructor * * @param int $user_id * @param int $tasks_id */ public function __construct($user_id, $task_id) { parent::__construct($user_id, array($task_id)); }