/** * returns the code (as a string) to call the plugin * (this will be executed at runtime inside the Dwoo class) * * @param string $name the plugin name * @param array $params a parameter array, array key "*" is the rest array * @return string */ public function getCode($name, $params) { return '$this->getPluginProxy()->view->' . $name . '(' . Dwoo_Compiler::implode_r($params) . ')'; }
public static function preProcessing(Dwoo_Compiler $compiler, array $params, $prepend, $append, $type) { return Dwoo_Compiler::PHP_OPEN . $prepend . '$this->addStack("' . $type . '", array(' . Dwoo_Compiler::implode_r($compiler->getCompiledParams($params)) . '));' . $append . Dwoo_Compiler::PHP_CLOSE; }
public function getCode($name, $params) { return 'PluginProxyTest_' . $name . '(' . Dwoo_Compiler::implode_r($params) . ')'; }