示例#1
0
 /**
  *
  *
  */
 public function __construct(ChainableInterface $chain, array $arguments = array())
 {
     if (!array_key_exists(0, $arguments)) {
         $arguments[0] = $chain->getSDK()->getAuthToken()->getAccountId();
     }
     parent::__construct($chain, $arguments);
 }
示例#2
0
 /**
  *
  *
  */
 public function __construct(ChainableInterface $chain, array $arguments = array())
 {
     if (!array_key_exists(0, $arguments)) {
         $arguments[0] = $chain->getSDK()->getAuthToken()->getAccountId();
     }
     parent::__construct($chain, $arguments);
     $this->setTokenValue($this->getEntityIdName(), $this->getId());
 }
 /**
  *
  *
  */
 public function fetch($append_uri = null)
 {
     $id = $this->getId();
     try {
         parent::fetch($append_uri);
     } catch (ServerErrorResponseException $e) {
         $this->setEntity(new stdClass());
         $this->new_number = TRUE;
     }
     $this->setId($id);
     return $this;
 }
示例#4
0
 /**
  *
  *
  */
 public function __construct(ChainableInterface $chain, array $arguments = array())
 {
     parent::__construct($chain, $arguments);
     $this->readOnly();
 }