/** * @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; }
public function __construct($array) { $this->arrayConstructionOnly = true; parent::__construct($array); }
private function getColumnsUrl() { return sprintf("%s/%d/columns/%s.json", parent::apiEndpoint(), $this->getBoardId(), $this->getId()); }
/** * 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); }