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