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

        if ( $this->getZoneCount() > 0 )
        {
            foreach ( $this->attributes['zones'] as $index => $zone )
            {
                if ( $zone->toBeRemoved() )
                    $this->removeZone($index);
                else
                    $zone->removeProcessed();
            }
        }
    }
public function removeProcessed()
    {
        if ( $this->hasAttribute( 'action' ) )
        {
            unset( $this->attributes['action'] );
        }

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