/** * Returns the body for this endpoint. * * @param string $method Method for this command. * * @return string */ protected function getBody($method) { if ($method === "get") { return parent::getBody($method); } $acls = array(); foreach ($this->getArguments() as $value) { $acls[] = $value; } return json_encode(array("acl" => $acls)); }
/** * Standard constructor. * */ public function __construct() { parent::__construct(); }
/** * Returns the body for this endpoint. * * @param string $method Method for this command. * * @return string */ protected function getBody($method) { $file = $this->getArgument("sound_file"); if (!is_null($file)) { return "file:{$file}"; } return parent::getBody($method); }