public function fetchClassAttributeHTTPInput( $http, $base, $attribute )
    {
        $classAttributeID = $attribute->attribute( 'id' );

        $subTreeLimit = (int) $http->postVariable( $base . self::SUBTREE_LIMIT_VARIABLE . $classAttributeID, -1 );
        $maxTags = (int) trim( $http->postVariable( $base . self::MAX_TAGS_VARIABLE . $classAttributeID, -1 ) );

        if ( $subTreeLimit < 0 || $maxTags < 0 )
            return false;

        $hideRootTag = (int) $http->hasPostVariable( $base . self::HIDE_ROOT_TAG_VARIABLE . $classAttributeID );

        $editView = trim( $http->postVariable( $base . self::EDIT_VIEW_VARIABLE . $classAttributeID, self::EDIT_VIEW_DEFAULT_VALUE ) );

        $eZTagsIni = eZINI::instance( 'eztags.ini' );
        $availableEditViews = $eZTagsIni->variable( 'EditSettings', 'AvailableViews' );
        if ( !in_array( $editView, array_keys( $availableEditViews ) ) )
            return false;

        $attribute->setAttribute( self::SUBTREE_LIMIT_FIELD, $subTreeLimit );
        $attribute->setAttribute( self::HIDE_ROOT_TAG_FIELD, $hideRootTag );
        $attribute->setAttribute( self::MAX_TAGS_FIELD, $maxTags );
        $attribute->setAttribute( self::EDIT_VIEW_FIELD, $editView );

        return true;
    }
public function fetchClassAttributeHTTPInput( $http, $base, $attribute )
    {
        $classAttributeID = $attribute->attribute( 'id' );

        $subTreeLimit = (int) $http->postVariable( $base . self::SUBTREE_LIMIT_VARIABLE . $classAttributeID, -1 );
        $maxTags = (int) trim( $http->postVariable( $base . self::MAX_TAGS_VARIABLE . $classAttributeID, -1 ) );

        if ( $subTreeLimit < 0 || $maxTags < 0 )
            return false;

        $hideRootTag = (int) $http->hasPostVariable( $base . self::HIDE_ROOT_TAG_VARIABLE . $classAttributeID );

        $editView = trim( $http->postVariable( $base . self::EDIT_VIEW_VARIABLE . $classAttributeID, self::EDIT_VIEW_DEFAULT_VALUE ) );

        $eZTagsIni = eZINI::instance( 'eztags.ini' );
        $availableEditViews = $eZTagsIni->variable( 'EditSettings', 'AvailableViews' );
        if ( !in_array( $editView, array_keys( $availableEditViews ) ) )
            return false;

        $attribute->setAttribute( self::SUBTREE_LIMIT_FIELD, $subTreeLimit );
        $attribute->setAttribute( self::HIDE_ROOT_TAG_FIELD, $hideRootTag );
        $attribute->setAttribute( self::MAX_TAGS_FIELD, $maxTags );
        $attribute->setAttribute( self::EDIT_VIEW_FIELD, $editView );

        return true;
    }
public function fetchClassAttributeHTTPInput ( $ http , $ base , $ attribute ) { $ classAttributeID = $ attribute -> attribute ( 'id' ) ; $ subTreeLimit = ( int ) $ http -> postVariable ( $ base . self :: SUBTREE_LIMIT_VARIABLE . $ classAttributeID , - 1 ) ; $ maxTags = ( int ) trim ( $ http -> postVariable ( $ base . self :: MAX_TAGS_VARIABLE . $ classAttributeID , - 1 ) ) ; if ( $ subTreeLimit < 0 || $ maxTags < 0 ) return false ; $ hideRootTag = ( int ) $ http -> hasPostVariable ( $ base . self :: HIDE_ROOT_TAG_VARIABLE . $ classAttributeID ) ; $ editView = trim ( $ http -> postVariable ( $ base . self :: EDIT_VIEW_VARIABLE . $ classAttributeID , self :: EDIT_VIEW_DEFAULT_VALUE ) ) ; $ eZTagsIni = eZINI :: instance ( 'eztags.ini' ) ; $ availableEditViews = $ eZTagsIni -> variable ( 'EditSettings' , 'AvailableViews' ) ; if ( ! in_array ( $ editView , array_keys ( $ availableEditViews ) ) ) return false ; $ attribute -> setAttribute ( self :: SUBTREE_LIMIT_FIELD , $ subTreeLimit ) ; $ attribute -> setAttribute ( self :: HIDE_ROOT_TAG_FIELD , $ hideRootTag ) ; $ attribute -> setAttribute ( self :: MAX_TAGS_FIELD , $ maxTags ) ; $ attribute -> setAttribute ( self :: EDIT_VIEW_FIELD , $ editView ) ; return true ; }
Fetches class attribute HTTP input and stores it

@param eZHTTPTool $http
@param string $base
@param eZContentClassAttribute $attribute

@return bool
Fetches class attribute HTTP input and stores it