/** * @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); }
/** * 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(); }