示例#1
0
 /**
  * @throws InvalidObjectException The board ID is nonexistent. This typically occurs when a group has been archived
  *                                or deleted and the information is not accessible.
  */
 public function deleteGroup()
 {
     if (!isset($this->board_id)) {
         throw new InvalidObjectException("This group may have been archived or deleted; its parent board ID cannot be accessed", 3);
     }
     $this->checkInvalid();
     $url = sprintf("%s/%s/groups/%s.json", parent::apiEndpoint(), $this->getBoardId(), $this->getId());
     self::sendDelete($url);
     $this->deletedObject = true;
 }
示例#2
0
 public function __construct($array)
 {
     $this->arrayConstructionOnly = true;
     parent::__construct($array);
 }
示例#3
0
 private function getColumnsUrl()
 {
     return sprintf("%s/%d/columns/%s.json", parent::apiEndpoint(), $this->getBoardId(), $this->getId());
 }
示例#4
0
 /**
  * Get all of the users
  *
  * @param  array $params GET parameters that need to be passed in the URL
  *
  * @since  0.1.0
  *
  * @return PulseUser[] An array of PulseUsers for each of the users
  */
 public static function getUsers($params = array())
 {
     $url = sprintf("%s.json", parent::apiEndpoint());
     return parent::fetchAndCastToObjectArray($url, "PulseUser", $params);
 }