public function removeProcessed()
    {
        if ( $this->hasAttribute( 'action' ) )
        {
            unset( $this->attributes['action'] );
        }

        if ( $this->getBlockCount() > 0 )
        {
            foreach ( $this->attributes['blocks'] as $index => $block )
            {
                if ( $block->toBeRemoved() )
                {
                    $this->removeBlock( $index );
                }
                else
                {
                    $block->removeProcessed();
                }
            }
        }

        return $this;
    }
public function removeProcessed()
    {
        if ( $this->hasAttribute( 'action' ) )
        {
            unset( $this->attributes['action'] );
        }

        if ( $this->getBlockCount() > 0 )
        {
            foreach ( $this->attributes['blocks'] as $index => $block )
            {
                if ( $block->toBeRemoved() )
                {
                    $this->removeBlock( $index );
                }
                else
                {
                    $block->removeProcessed();
                }
            }
        }

        return $this;
    }
public function removeProcessed ( ) { if ( $ this -> hasAttribute ( 'action' ) ) { unset ( $ this -> attributes [ 'action' ] ) ; } if ( $ this -> getBlockCount ( ) > 0 ) { foreach ( $ this -> attributes [ 'blocks' ] as $ index => $ block ) { if ( $ block -> toBeRemoved ( ) ) { $ this -> removeBlock ( $ index ) ; } else { $ block -> removeProcessed ( ) ; } } } return $ this ; }
Cleanup processed objects, removes action attribute
removes all blocks marked with "remove" action

@return eZPageZone
Cleanup processed objects removes action attribute removes all blocks marked with remove action