Exemplo n.º 1
0
 /**
  * @param string $value
  */
 public function setPrimaryUriAttribute($value)
 {
     $this->attributes[self::ATTR_PRIMARY_URI] = URLHelper::sanitise($value);
 }
Exemplo n.º 2
0
 /**
  * @param string $location
  *
  * @return URLInterface
  */
 public function findByLocation($location)
 {
     return $this->model->where('location', '=', URLHelper::sanitise($location))->first();
 }
Exemplo n.º 3
0
 /**
  * @param string $value
  */
 public function setLocationAttribute($value)
 {
     $this->attributes[self::ATTR_LOCATION] = URLHelper::sanitise($value);
 }
Exemplo n.º 4
0
 /**
  * @param string $location
  *
  * @return URLInterface
  */
 public function findByLocation($location)
 {
     return $this->model->where(Model::ATTR_SITE, '=', $this->site->getId())->where(Model::ATTR_LOCATION, '=', URLHelper::sanitise($location))->first();
 }