_id = (int) $data->id; $this->_name = $data->name; $this->_position = (int) $data->position; $this->_deleted = ($data->deleted == '1') ? true : false; $this->_locked = ($data->locked == '1') ? true : false; $this->_archived = ($data->archived == '1') ? true : false; $this->_smart = ($data->smart == '1') ? true : false; } /** * Returns the identifier for the list. * * @return int */ public function getId() { return $this->_id; } /** * Returns the name of the list. * * @return string */ public function getName() { return $this->_name; } /** * Returns the position of the list. * * @return int */ public function getPosition() { return $this->_position; } /** * Returns the filter setting for the list, or the empty string if the * list is not a Smart List. * * @return string */ public function getFilter() { return $this->_filter; } /** * Returns whether or not the list has been deleted. * * @return bool TRUE if the list has been deleted, FALSE otherwise */ public function isDeleted() { return $this->_deleted; } /** * Returns whether or not the list has been locked. * * @return bool TRUE if the list has been locked, FALSE otherwise */ public function isLocked() { return $this->_locked; } /** * Returns whether or not the list has been archived. * * @return bool TRUE if the list has been archived, FALSE otherwise */ public function isArchived() { return $this->_archived; } /** * Returns whether or not the list is a Smart List. * * @return bool TRUE if the list is a Smart List, FALSE otherwise */ public function isSmart() { return $this->_smart; } }