Example #1
0
 /**
  * Resource collection constructor
  *
  * @param M2X $client
  */
 public function __construct(M2X $client, $params = array(), $parent = null)
 {
     if ($parent) {
         $this->parent = $parent;
     }
     parent::__construct($client, $params);
 }
Example #2
0
 /**
  * Device collection constructor
  *
  * @param M2X $client
  * @param array $params
  * @param boolean $catalog Search in the catalog
  */
 public function __construct(M2X $client, $params = array(), $catalog = false, $parent = null)
 {
     $this->catalog = $catalog;
     if ($parent) {
         $this->parent = $parent;
         $this->catalog = false;
     }
     parent::__construct($client, $params);
 }
Example #3
0
 /**
  * Resource collection constructor
  *
  * @param M2X $client
  */
 public function __construct(M2X $client, Resource $parent, $params = array())
 {
     $this->parent = $parent;
     parent::__construct($client, $params);
 }