예제 #1
0
 /**
  * Return the API path for the query
  *
  * @return void
  */
 protected function path()
 {
     if ($this->parent) {
         return $this->parent->path() . '/commands';
     }
     $class = static::$resourceClass;
     $path = $class::$path;
     return $path;
 }
예제 #2
0
 /**
  * Return the API path for the query
  *
  * @return void
  */
 protected function path()
 {
     if ($this->parent) {
         return $this->parent->path() . '/devices';
     }
     $class = static::$resourceClass;
     $path = $class::$path;
     if ($this->catalog) {
         $path .= '/catalog';
     }
     return $path;
 }
예제 #3
0
 /**
  * Return the API path for the query
  *
  * @return void
  */
 protected function path()
 {
     $class = static::$resourceClass;
     return str_replace(':parent_path', $this->parent->path(), $class::$path);
 }
예제 #4
0
파일: Stream.php 프로젝트: attm2x/m2x-php
 /**
  * Returns the path to the resource
  *
  * @return string
  */
 public function path()
 {
     return str_replace(':parent_path', $this->parent->path(), self::$path) . '/' . $this->id();
 }