Example #1
0
 /**
  * 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));
 }
Example #2
0
 /**
  * Standard constructor.
  *
  */
 public function __construct()
 {
     parent::__construct();
 }
Example #3
0
 /**
  * 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);
 }