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;
    }
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;
    }
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 ; }
get an array of all attributes

The prefix will not be included in the returned attribute keys.

@return array
get an array of all attributes