Exemplo n.º 1
0
 /**
  * @param $label
  * @param $value
  * @param null $type
  */
 public function __construct($label, $value, $type = null)
 {
     if (self::$events != null) {
         $this->label = self::$events->triggerTranslate($label, 'parameter');
     } else {
         $this->label = $label;
     }
     $this->value = $value;
     $this->type = $type != null ? $type : gettype($value);
 }
Exemplo n.º 2
0
 /**
  * Clears all expression types
  */
 public function clearTypes()
 {
     $this->types = array();
     $this->typesCount = array();
     $this->pluginInstances = array();
     $this->plugins = array();
     $this->events->clear();
     Expression\Plugin::$indexes = array();
     Expression\Plugin::$customClasses = array();
     Expression\BlockType\Header::$ids = array();
 }