Ejemplo n.º 1
0
 private function cleanFileName($name)
 {
     $name = Sanitize::underscore($name);
     $name = str_replace('-', ' ', $name);
     return ucwords($name);
 }
Ejemplo n.º 2
0
 /**
  * Set name of field. Not the same as the html name attribute.
  *
  * @param string $name
  *
  * @return $this
  */
 public function setName($name)
 {
     $this->name = Sanitize::underscore($name);
     return $this;
 }