kernel/classes/datatypes/ezimage/ezimagealiashandler.php
public function purgeAllAliases()
    {
        $aliasList = $this->aliasList( false );
        ezpEvent::getInstance()->notify( 'image/purgeAliases', array( $aliasList['original']['url'] ) );
        unset( $aliasList['original'] ); // keeping original

        foreach ( $aliasList as $alias )
        {
            if ( $alias['is_valid'] )
                $this->removeAliasFile( $alias['url'] );

            // remove entry from DOM model
            $doc = $this->ContentObjectAttributeData['DataTypeCustom']['dom_tree'];
            $domXPath = new DOMXPath( $doc );
            foreach ( $domXPath->query( "//alias[@name='{$alias['name']}']") as $aliasNode )
            {
                $aliasNode->parentNode->removeChild( $aliasNode );
            }
        }

        if ( isset( $doc ) )
            $this->storeDOMTree( $doc, true, false );
    }
public function purgeAllAliases()
    {
        $aliasList = $this->aliasList( false );
        ezpEvent::getInstance()->notify( 'image/purgeAliases', array( $aliasList['original']['url'] ) );
        unset( $aliasList['original'] ); // keeping original

        foreach ( $aliasList as $alias )
        {
            if ( $alias['is_valid'] )
                $this->removeAliasFile( $alias['url'] );

            // remove entry from DOM model
            $doc = $this->ContentObjectAttributeData['DataTypeCustom']['dom_tree'];
            $domXPath = new DOMXPath( $doc );
            foreach ( $domXPath->query( "//alias[@name='{$alias['name']}']") as $aliasNode )
            {
                $aliasNode->parentNode->removeChild( $aliasNode );
            }
        }

        if ( isset( $doc ) )
            $this->storeDOMTree( $doc, true, false );
    }
public function purgeAllAliases ( ) { $ aliasList = $ this -> aliasList ( false ) ; ezpEvent :: getInstance ( ) -> notify ( 'image/purgeAliases' , array ( $ aliasList [ 'original' ] [ 'url' ] ) ) ; unset ( $ aliasList [ 'original' ] ) ; // keeping original foreach ( $ aliasList as $ alias ) { if ( $ alias [ 'is_valid' ] ) $ this -> removeAliasFile ( $ alias [ 'url' ] ) ; // remove entry from DOM model $ doc = $ this -> ContentObjectAttributeData [ 'DataTypeCustom' ] [ 'dom_tree' ] ; $ domXPath = new DOMXPath ( $ doc ) ; foreach ( $ domXPath -> query ( "//alias[@name='{$alias['name']}']" ) as $ aliasNode ) { $ aliasNode -> parentNode -> removeChild ( $ aliasNode ) ; } } if ( isset ( $ doc ) ) $ this -> storeDOMTree ( $ doc , true , false ) ; }
Removes the images alias while keeping the original image.
@see eZCache::purgeAllAliases()
Removes the images alias while keeping the original image .