public function getAttributes()
    {

        // initialize the array with the attributes
        $attributes = array();

        // prepare the pattern to filter the attributes
        $pattern = sprintf('%s-*', $this->getSerial());

        // prepare the array with the attributes
        foreach ($this as $key => $value) {
            if (fnmatch($pattern, $key)) {
                $attributes[$key] = $value;
            }
        }

        // return the attributes
        return $attributes;
    }
public function getAttributes()
    {

        // initialize the array with the attributes
        $attributes = array();

        // prepare the pattern to filter the attributes
        $pattern = sprintf('%s-*', $this->getSerial());

        // prepare the array with the attributes
        foreach ($this as $key => $value) {
            if (fnmatch($pattern, $key)) {
                $attributes[$key] = $value;
            }
        }

        // return the attributes
        return $attributes;
    }
public function getAttributes ( ) { // initialize the array with the attributes $ attributes = array ( ) ; // prepare the pattern to filter the attributes $ pattern = sprintf ( '%s-*' , $ this -> getSerial ( ) ) ; // prepare the array with the attributes foreach ( $ this as $ key => $ value ) { if ( fnmatch ( $ pattern , $ key ) ) { $ attributes [ $ key ] = $ value ; } } // return the attributes return $ attributes ; }
All values registered in the context.

@return array The context data
All values registered in the context .