category["yellowpages_category_yellowpages_ids"] = $yellowpages ? $yellowpages->getId() : 0; if ($category) { $this->category = array_merge($this->category, $category); } } // Getters function getId() { return $this->category["yellowpages_category_id"]; } function getYellowpagesId() { return $this->category["yellowpages_category_yellowpages_ids"]; } function getName() { return $this->category["yellowpages_category_name"]; } function getTitle() { return $this->category["yellowpages_category_title"]; } function getDescription() { return $this->category["yellowpages_category_description"]; } function getIcon() { return $this->category["yellowpages_category_icon"]; } function getImages() { return $this->category["yellowpages_category_images"]; } function getLinkDescription() { return $this->category["yellowpages_category_link_description"]; } function getLinkURL() { return $this->category["yellowpages_category_link_url"]; } function getTemplate() { return $this->category["yellowpages_category_template"]; } function getRestrictionValue() { return $this->category["yellowpages_category_vote_restriction_value"]; } function getRestrictionField() { return $this->category["yellowpages_category_vote_restriction_field"]; } } ?>getId()] = $yellowpagess; } else { $yellowpageslist = $yellowpagess; } foreach ($yellowpageslist as $yellowpages) { $this->setViewyellowpages($yellowpages); $this->setVoteyellowpages($yellowpages); } $this->user = get_user_data(USERID); } // Setters function setViewyellowpages($yellowpages) { $this->privs[$yellowpages->getId()]["view"] = check_class($yellowpages->getViewClass()); } function setVoteyellowpages($yellowpages) { $this->privs[$yellowpages->getId()]["vote"] = check_class($yellowpages->getVoteClass()) || USERID == $yellowpages->getOwnerId(); } // Privilege checks function canViewyellowpages($yellowpagesId) { return $this->privs[$yellowpagesId]["view"]; } function canVoteyellowpages($yellowpagesId) { return $this->privs[$yellowpagesId]["vote"]; } function isRestricted($value, $field) { return ($value && $value == $this->user["user_$field"]); } } ?>level = $level; $this->messages = array(); } function getLevel() { return $this->level; } function getLevelDescription() { switch ($this->level) { case STATUS_DEBUG : { return YELP_LAN_MSG_DEBUG; } case STATUS_INFO : { return YELP_LAN_MSG_INFORMATION; } case STATUS_WARN : { return YELP_LAN_MSG_WARNING; } case STATUS_ERROR : { return YELP_LAN_MSG_ERROR; } case STATUS_FATAL : { return YELP_LAN_MSG_FATAL; } default : { return ""; } } } function getMessageCount() { return count($this->messages); } function getMessage($ix) { return $this->messages[$ix]["message"]; } function getAdditionalDetails($ix) { return $this->messages[$ix]["additional"]; } function hasAdditionalDetails($ix) { return (isset($this->messages[$ix]["additional"])); } function addMessage($message, $additionalDetails=false) { $this->messages[]["message"] = $message; if (false !== $additionalDetails) { return $this->messages[count($this->messages)-1]["additional"] = $additionalDetails; } } function addMissingMandatory($fieldName) { return $this->messages[]["message"] = $fieldName.YELP_LAN_MSG_MANDATORY; } } ?> Městská kulturní zařízení Bělá pod Bezdězem: Katalog služeb

http://www.mkzbela.cz/