Ver Mensaje Individual
  #16 (permalink)  
Antiguo 06/08/2008, 09:18
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: splObjectStorage detach

Que bueno que ya entendiste como usar objetos sobrecargados,

Prueba hacer esto:
Código PHP:
class myCustomStorage extends SplObjectStorage {
         public function 
clear() {
                 while( 
$item $this->current() ) {
                        
$this->detach$item );
                        
$this->next();
                 }
                 
                 if( ( 
count$this ) > ) && ( ( $item $this->current() ) !== null ) ) {
                      
$this->detach$item );
                 }
        }

Saludos.