Ver Mensaje Individual
  #6 (permalink)  
Antiguo 30/03/2010, 15:03
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años, 9 meses
Puntos: 2135
Respuesta: Clases Estaticas

Me refiero a un método:
Código PHP:
Ver original
  1. class StaticTest
  2. {
  3.         public function foo() {}
  4.  
  5.         public static function staticfoo() {
  6.                $this->foo();
  7.         }
  8. }
  9.  
  10. StaticTest:foo(); // E_STRICT error
  11. StaticTest:staticfoo(); // FATAL_ERROR using $this when not in context

Saludos.