@@ -89,7 +89,7 @@ |
||
| 89 | 89 | * |
| 90 | 90 | * @param string $sTemplate |
| 91 | 91 | * @param boolean $return |
| 92 | - * @return mixed |
|
| 92 | + * @return null|string |
|
| 93 | 93 | */ |
| 94 | 94 | public function display($sTemplate, $return = FALSE) { |
| 95 | 95 | // Start benchmark |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | /** |
| 29 | 29 | * Dwoo_Adapters_ZendFramework_PluginProxy's constructor. |
| 30 | 30 | * |
| 31 | - * @param Zend_View_Interface $view |
|
| 31 | + * @param Dwoo_Adapters_ZendFramework_View $view |
|
| 32 | 32 | */ |
| 33 | 33 | public function __construct(Zend_View_Interface $view) { |
| 34 | 34 | $this->view = $view; |
@@ -87,7 +87,6 @@ discard block |
||
| 87 | 87 | * - type class name or object for engine, dataProvider or compiler |
| 88 | 88 | * - any set* method (compileDir for setCompileDir ...) |
| 89 | 89 | * |
| 90 | - * @param array $options |
|
| 91 | 90 | * @return Dwoo_Adapters_ZendFramework_View |
| 92 | 91 | */ |
| 93 | 92 | public function setOptions(array $opt = array()) |
@@ -272,6 +271,7 @@ discard block |
||
| 272 | 271 | * Sets Dwoo data object |
| 273 | 272 | * |
| 274 | 273 | * @param string|Dwoo_Data Object or name of the class |
| 274 | + * @param Dwoo_Data $data |
|
| 275 | 275 | */ |
| 276 | 276 | public function setDataProvider($data) |
| 277 | 277 | { |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | /** |
| 330 | 330 | * Return the Dwoo compiler object |
| 331 | 331 | * |
| 332 | - * @return Dwoo_Data |
|
| 332 | + * @return Dwoo_Compiler |
|
| 333 | 333 | */ |
| 334 | 334 | public function getCompiler() |
| 335 | 335 | { |
@@ -404,7 +404,7 @@ discard block |
||
| 404 | 404 | * Clears all variables assigned to Zend_View either via {@link assign()} or |
| 405 | 405 | * property overloading ({@link __get()}/{@link __set()}). |
| 406 | 406 | * |
| 407 | - * @return void |
|
| 407 | + * @return Dwoo_Adapters_ZendFramework_View |
|
| 408 | 408 | * @return Dwoo_Adapters_ZendFramework_View |
| 409 | 409 | */ |
| 410 | 410 | public function clearVars() |
@@ -431,7 +431,6 @@ discard block |
||
| 431 | 431 | * Processes a view script and outputs it. Output is then |
| 432 | 432 | * passed through filters. |
| 433 | 433 | * |
| 434 | - * @param string $name The script script name to process. |
|
| 435 | 434 | * @return string The script output. |
| 436 | 435 | */ |
| 437 | 436 | public function _run() |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | /** |
| 271 | 271 | * returns the left and right template delimiters |
| 272 | 272 | * |
| 273 | - * @return array containing the left and the right delimiters |
|
| 273 | + * @return string[] containing the left and the right delimiters |
|
| 274 | 274 | */ |
| 275 | 275 | public function getDelimiters() |
| 276 | 276 | { |
@@ -358,7 +358,7 @@ discard block |
||
| 358 | 358 | * adds a preprocessor to the compiler, it will be called |
| 359 | 359 | * before the template is compiled |
| 360 | 360 | * |
| 361 | - * @param mixed $callback either a valid callback to the preprocessor or a simple name if the autoload is set to true |
|
| 361 | + * @param string $callback either a valid callback to the preprocessor or a simple name if the autoload is set to true |
|
| 362 | 362 | * @param bool $autoload if set to true, the preprocessor is auto-loaded from one of the plugin directories, else you must provide a valid callback |
| 363 | 363 | */ |
| 364 | 364 | public function addPreProcessor($callback, $autoload = false) |
@@ -685,7 +685,6 @@ discard block |
||
| 685 | 685 | /** |
| 686 | 686 | * compiles the provided string down to php code |
| 687 | 687 | * |
| 688 | - * @param string $tpl the template to compile |
|
| 689 | 688 | * @return string a compiled php string |
| 690 | 689 | */ |
| 691 | 690 | public function compile(Dwoo_Core $dwoo, Dwoo_ITemplate $template) |
@@ -1215,7 +1214,7 @@ discard block |
||
| 1215 | 1214 | * returns the token of each parameter out of the given parameter array |
| 1216 | 1215 | * |
| 1217 | 1216 | * @param array $params parameter array |
| 1218 | - * @return array tokens |
|
| 1217 | + * @return Dwoo_Compiler tokens |
|
| 1219 | 1218 | */ |
| 1220 | 1219 | public function getParamTokens(array $params) |
| 1221 | 1220 | { |
@@ -303,14 +303,14 @@ discard block |
||
| 303 | 303 | /** |
| 304 | 304 | * returns the given template rendered using the provided data and optional compiler |
| 305 | 305 | * |
| 306 | - * @param mixed $tpl template, can either be a Dwoo_ITemplate object (i.e. Dwoo_Template_File), a valid path to a template, or |
|
| 306 | + * @param mixed $_tpl template, can either be a Dwoo_ITemplate object (i.e. Dwoo_Template_File), a valid path to a template, or |
|
| 307 | 307 | * a template as a string it is recommended to provide a Dwoo_ITemplate as it will probably make things faster, |
| 308 | 308 | * especially if you render a template multiple times |
| 309 | 309 | * @param mixed $data the data to use, can either be a Dwoo_IDataProvider object (i.e. Dwoo_Data) or an associative array. if you're |
| 310 | 310 | * rendering the template from cache, it can be left null |
| 311 | - * @param Dwoo_ICompiler $compiler the compiler that must be used to compile the template, if left empty a default |
|
| 311 | + * @param Dwoo_ICompiler $_compiler the compiler that must be used to compile the template, if left empty a default |
|
| 312 | 312 | * Dwoo_Compiler will be used. |
| 313 | - * @param bool $output flag that defines whether the function returns the output of the template (false, default) or echoes it directly (true) |
|
| 313 | + * @param bool $_output flag that defines whether the function returns the output of the template (false, default) or echoes it directly (true) |
|
| 314 | 314 | * @return string nothing or the template output if $output is false |
| 315 | 315 | */ |
| 316 | 316 | public function get($_tpl, $data = array(), $_compiler = null, $_output = false) |
@@ -1462,7 +1462,7 @@ discard block |
||
| 1462 | 1462 | * |
| 1463 | 1463 | * @param mixed $value the value to assign |
| 1464 | 1464 | * @param string $scope the variable string, using dwoo variable syntax (i.e. "var.subvar[subsubvar]->property") |
| 1465 | - * @return bool true if assigned correctly or false if a problem occured while parsing the var string |
|
| 1465 | + * @return null|false true if assigned correctly or false if a problem occured while parsing the var string |
|
| 1466 | 1466 | */ |
| 1467 | 1467 | public function assignInScope($value, $scope) |
| 1468 | 1468 | { |
@@ -66,7 +66,6 @@ |
||
| 66 | 66 | * merges the given array(s) with the current data with array_merge |
| 67 | 67 | * |
| 68 | 68 | * @param array $data the array to merge |
| 69 | - * @param array $data2 $data3 ... other arrays to merge, optional, etc. |
|
| 70 | 69 | */ |
| 71 | 70 | public function mergeData(array $data) |
| 72 | 71 | { |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | /** |
| 25 | 25 | * compiles the provided string down to php code |
| 26 | 26 | * |
| 27 | - * @param string $templateStr the template to compile |
|
| 27 | + * @param string $template the template to compile |
|
| 28 | 28 | * @return string a compiled php code string |
| 29 | 29 | */ |
| 30 | 30 | public function compile(Dwoo_Core $dwoo, Dwoo_ITemplate $template); |
@@ -34,6 +34,7 @@ discard block |
||
| 34 | 34 | * |
| 35 | 35 | * @see Dwoo_Core::addPlugin |
| 36 | 36 | * @param array $customPlugins an array of custom plugins |
| 37 | + * @return void |
|
| 37 | 38 | */ |
| 38 | 39 | public function setCustomPlugins(array $customPlugins); |
| 39 | 40 | |
@@ -44,6 +45,7 @@ discard block |
||
| 44 | 45 | * set it on the Dwoo object as it will be passed onto the compiler automatically |
| 45 | 46 | * |
| 46 | 47 | * @param Dwoo_Security_Policy $policy the security policy object |
| 48 | + * @return void |
|
| 47 | 49 | */ |
| 48 | 50 | public function setSecurityPolicy(Dwoo_Security_Policy $policy = null); |
| 49 | 51 | } |
@@ -42,6 +42,9 @@ |
||
| 42 | 42 | |
| 43 | 43 | protected $corePluginDir; |
| 44 | 44 | |
| 45 | + /** |
|
| 46 | + * @param string $cacheDir |
|
| 47 | + */ |
|
| 45 | 48 | public function __construct($cacheDir) |
| 46 | 49 | { |
| 47 | 50 | $this->corePluginDir = DWOO_DIRECTORY . 'plugins'; |
@@ -27,7 +27,6 @@ |
||
| 27 | 27 | * constructor, if you override it, call parent::__construct($dwoo); or assign |
| 28 | 28 | * the dwoo instance yourself if you need it |
| 29 | 29 | * |
| 30 | - * @param Dwoo_Core $dwoo the dwoo instance that runs this plugin |
|
| 31 | 30 | */ |
| 32 | 31 | public function __construct(Dwoo_Compiler $compiler) |
| 33 | 32 | { |