public function getPlaceUrl() { $state = \strtolower($this->getAddress()->getCity()->getState()); $state = \strtolower(Inflector::slug($state)); $city = \strtolower($this->getAddress()->getCity()->getName()); $city = \strtolower(Inflector::slug($city)); $category = \strtolower(Inflector::slug($this->getCategory())); $name = \strtolower(Inflector::slug($this->getName())); $id = $this->getId(); return ROOT_URL . $state . '/' . $city . '/' . $category . '/' . $name . '/' . $id . '.html'; }
public function setName($name) { $this->name = Inflector::formatTitle($name); }
public function setDistrict($district) { $this->district = Inflector::formatTitle($district); }