Example #1
0
 /**
  * When you call static
  *
  * @param $name
  * @param array $args
  * @return mixed
  */
 public static function __callStatic($name, $args = [])
 {
     // Check if class is single ton
     if (method_exists(__CLASS__, 'getInstance')) {
         return self::getInstance()->__call($name, $args);
     }
     $self = new self();
     return $self->__call($name, $args);
 }
Example #2
0
 public static function __callStatic($name, $children)
 {
     $collection = new self();
     $collection->extra('type', '');
     return $collection->__call($name, $children);
 }
Example #3
0
 public static function __callStatic($ruleName, $arguments)
 {
     $validator = new self();
     return $validator->__call($ruleName, $arguments);
 }
Example #4
0
 public static function __callStatic($name, $children)
 {
     $collection = new self();
     $collection->extra('mixins', array());
     return $collection->__call($name, $children);
 }
Example #5
0
 /**
  * Instancie la classe et appelle la méthode de classe dont le nom et les arguments sont passés en paramètres.
  * 
  * @param string $sHandler Nom de la méthode statique appelée dynamiquement.
  * @param array $aArguments Arguments à passer à la méthode statique.
  * @return Aouka\Text\Manipulator
  */
 public static function __callStatic($sHandler, $aArguments)
 {
     $oSelf = new self();
     return $oSelf->__call($sHandler, $aArguments);
 }