Exemplo n.º 1
0
 /**
  * get an array of all attributes
  *
  * The prefix will not be included in the returned attribute keys.
  *
  * @return array
  */
 public function getAttributes()
 {
     $attributes = array();
     $len = strlen($this->prefix);
     foreach ($this->bag->getAttributes() as $name => $value) {
         if (strpos($name, $this->prefix) === 0) {
             $attributes[substr($name, $len)] = $value;
         }
     }
     return $attributes;
 }