lib/ezutils/classes/ezuri.php
public function attribute( $attr )
    {
        switch ( $attr )
        {
            case 'element':
                return $this->element();
                break;
            case 'tail':
                return $this->elements();
                break;
            case 'base':
                return $this->base();
                break;
            case 'index':
                return $this->index();
                break;
            case 'uri':
                return $this->uriString();
                break;
            case 'original_uri':
                return $this->originalURIString();
                break;
            case 'query_string':
                return eZSys::queryString();
                break;
            default:
            {
                eZDebug::writeError( "Attribute '$attr' does not exist", __METHOD__ );
                return null;
            } break;
        }
    }
public function attribute( $attr )
    {
        switch ( $attr )
        {
            case 'element':
                return $this->element();
                break;
            case 'tail':
                return $this->elements();
                break;
            case 'base':
                return $this->base();
                break;
            case 'index':
                return $this->index();
                break;
            case 'uri':
                return $this->uriString();
                break;
            case 'original_uri':
                return $this->originalURIString();
                break;
            case 'query_string':
                return eZSys::queryString();
                break;
            default:
            {
                eZDebug::writeError( "Attribute '$attr' does not exist", __METHOD__ );
                return null;
            } break;
        }
    }
public function attribute ( $ attr ) { switch ( $ attr ) { case 'element' : return $ this -> element ( ) ; break ; case 'tail' : return $ this -> elements ( ) ; break ; case 'base' : return $ this -> base ( ) ; break ; case 'index' : return $ this -> index ( ) ; break ; case 'uri' : return $ this -> uriString ( ) ; break ; case 'original_uri' : return $ this -> originalURIString ( ) ; break ; case 'query_string' : return eZSys :: queryString ( ) ; break ; default : { eZDebug :: writeError ( "Attribute '$attr' does not exist" , __METHOD__ ) ; return null ; } break ; } }
Get value for an attribute

@param string $attr
@return boolean the value for attribute $attr or null if it does not exist.
Get value for an attribute