Ver Mensaje Individual
  #4 (permalink)  
Antiguo 30/07/2008, 12:58
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

Mmmm un ejemplo:
Código PHP:
class myCustomStorage extends SplObjectStorage {
         public function 
clear() {
                 while( 
$item $this->current() ) {
                        
$this->detach$item );
                        
$item $this->next();
                 }
                 
                 if( 
count$this ) > ) {
                      
$this->detach$this->current() );
                 }
         }

Saludos.

Última edición por GatorV; 06/08/2008 a las 08:28