Beispiel #1
0
 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';
 }
Beispiel #2
0
 public function setName($name)
 {
     $this->name = Inflector::formatTitle($name);
 }
Beispiel #3
0
 public function setDistrict($district)
 {
     $this->district = Inflector::formatTitle($district);
 }