Inheritance: implements Pantheon\Terminus\Request\RequestAwareInterface, use trait Pantheon\Terminus\Request\RequestAwareTrait
 /**
  * @inheritdoc
  */
 public function __construct($attributes = null, array $options = [])
 {
     parent::__construct($attributes, $options);
     $this->organization = $options['collection']->organization;
     $this->site_data = $attributes->site;
     $this->tags_data = $attributes->tags;
 }
Example #2
0
 /**
  * Object constructor
  *
  * @param object $attributes Attributes of this model
  * @param array $options Options with which to configure this model
  * @return Workflow
  */
 public function __construct($attributes = null, array $options = [])
 {
     parent::__construct($attributes, $options);
     $this->owner = null;
     if (isset($options['collection'])) {
         $this->owner = $options['collection']->getOwnerObject();
     } elseif (isset($options['environment'])) {
         $this->owner = $options['environment'];
     } elseif (isset($options['organization'])) {
         $this->owner = $options['organization'];
     } elseif (isset($options['site'])) {
         $this->owner = $options['site'];
     } elseif (isset($options['user'])) {
         $this->owner = $options['user'];
     }
 }
 /**
  * @inheritdoc
  */
 public function __construct($attributes = null, array $options = [])
 {
     parent::__construct($attributes, $options);
     $this->site_info = $attributes->site;
     $this->user = $options['collection']->getUser();
 }
Example #4
0
 /**
  * @inheritdoc
  */
 public function __construct($attributes = null, array $options = [])
 {
     parent::__construct($attributes, $options);
     $this->site = $options['site'];
     $this->url = "sites/{$this->site->id}/new-relic";
 }
Example #5
0
 /**
  * Object constructor
  *
  * @param object $attributes Attributes of this model
  * @param array $options Options with which to configure this model
  */
 public function __construct($attributes = null, array $options = [])
 {
     parent::__construct($attributes, $options);
     $this->url = "users/{$this->id}";
 }
 /**
  * Object constructor
  *
  * @param object $attributes Attributes of this model
  * @param array $options Options with which to configure this model
  * @return SiteUserMembership
  */
 public function __construct($attributes = null, array $options = [])
 {
     parent::__construct($attributes, $options);
     $this->site = $options['collection']->site;
     $this->user_data = $attributes->user;
 }
Example #7
0
 /**
  * @inheritdoc
  */
 public function __construct($attributes = null, array $options = [])
 {
     parent::__construct($attributes, $options);
     $this->url = "sites/{$this->id}?site_state=true";
     $this->setUpstream($attributes);
 }
Example #8
0
 /**
  * @inheritdoc
  */
 public function __construct($attributes = null, array $options = [])
 {
     parent::__construct($attributes, $options);
 }
 /**
  * Object constructor
  *
  * @param object $attributes Attributes of this model
  * @param array $options Options with which to configure this model
  */
 public function __construct($attributes, array $options = [])
 {
     $this->site = $options['collection']->getSite();
     parent::__construct($attributes, $options);
     $this->url = "sites/{$this->site->id}/environments/{$this->id}";
 }
Example #10
0
 /**
  * @inheritdoc
  */
 public function __construct($attributes, array $options = [])
 {
     parent::__construct($attributes, $options);
     $this->environment = $options['collection']->environment;
 }