| @@ -46,7 +46,7 @@ | ||
| 46 | 46 | /** | 
| 47 | 47 | * Dwoo_Adapters_ZendFramework_PluginProxy's constructor. | 
| 48 | 48 | * | 
| 49 | - * @param Zend_View_Interface $view | |
| 49 | + * @param Dwoo_Adapters_ZendFramework_View $view | |
| 50 | 50 | */ | 
| 51 | 51 | public function __construct(Zend_View_Interface $view) | 
| 52 | 52 |      { | 
| @@ -95,7 +95,7 @@ | ||
| 95 | 95 | * @param string $sTemplate | 
| 96 | 96 | * @param bool $return | 
| 97 | 97 | * | 
| 98 | - * @return mixed | |
| 98 | + * @return null|string | |
| 99 | 99 | */ | 
| 100 | 100 | public function display($sTemplate, $return = false) | 
| 101 | 101 |      { | 
| @@ -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 | * | 
| 92 | 91 | * @return Dwoo_Adapters_ZendFramework_View | 
| 93 | 92 | */ | 
| @@ -279,6 +278,7 @@ discard block | ||
| 279 | 278 | * Sets Dwoo data object. | 
| 280 | 279 | * | 
| 281 | 280 | * @param string|Dwoo_Data Object or name of the class | 
| 281 | + * @param Dwoo_Data $data | |
| 282 | 282 | */ | 
| 283 | 283 | public function setDataProvider($data) | 
| 284 | 284 |      { | 
| @@ -441,7 +441,6 @@ discard block | ||
| 441 | 441 | * Processes a view script and outputs it. Output is then | 
| 442 | 442 | * passed through filters. | 
| 443 | 443 | * | 
| 444 | - * @param string $name The script script name to process | |
| 445 | 444 | * | 
| 446 | 445 | * @return string The script output | 
| 447 | 446 | */ | 
| @@ -274,7 +274,7 @@ discard block | ||
| 274 | 274 | /** | 
| 275 | 275 | * returns the left and right template delimiters. | 
| 276 | 276 | * | 
| 277 | - * @return array containing the left and the right delimiters | |
| 277 | + * @return string[] containing the left and the right delimiters | |
| 278 | 278 | */ | 
| 279 | 279 | public function getDelimiters() | 
| 280 | 280 |      { | 
| @@ -366,7 +366,7 @@ discard block | ||
| 366 | 366 | * adds a preprocessor to the compiler, it will be called | 
| 367 | 367 | * before the template is compiled. | 
| 368 | 368 | * | 
| 369 | - * @param mixed $callback either a valid callback to the preprocessor or a simple name if the autoload is set to true | |
| 369 | + * @param string $callback either a valid callback to the preprocessor or a simple name if the autoload is set to true | |
| 370 | 370 | * @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 | 
| 371 | 371 | */ | 
| 372 | 372 | public function addPreProcessor($callback, $autoload = false) | 
| @@ -1287,7 +1287,7 @@ discard block | ||
| 1287 | 1287 | * | 
| 1288 | 1288 | * @param array $params parameter array | 
| 1289 | 1289 | * | 
| 1290 | - * @return array tokens | |
| 1290 | + * @return Dwoo_Compiler tokens | |
| 1291 | 1291 | */ | 
| 1292 | 1292 | public function getParamTokens(array $params) | 
| 1293 | 1293 |      { | 
| @@ -70,7 +70,6 @@ | ||
| 70 | 70 | * merges the given array(s) with the current data with array_merge. | 
| 71 | 71 | * | 
| 72 | 72 | * @param array $data the array to merge | 
| 73 | - * @param array $data2 $data3 ... other arrays to merge, optional, etc | |
| 74 | 73 | */ | 
| 75 | 74 | public function mergeData(array $data) | 
| 76 | 75 |      { | 
| @@ -27,7 +27,7 @@ discard block | ||
| 27 | 27 | /** | 
| 28 | 28 | * compiles the provided string down to php code. | 
| 29 | 29 | * | 
| 30 | - * @param string $templateStr the template to compile | |
| 30 | + * @param string $template the template to compile | |
| 31 | 31 | * | 
| 32 | 32 | * @return string a compiled php code string | 
| 33 | 33 | */ | 
| @@ -39,6 +39,7 @@ discard block | ||
| 39 | 39 | * @see Dwoo_Core::addPlugin | 
| 40 | 40 | * | 
| 41 | 41 | * @param array $customPlugins an array of custom plugins | 
| 42 | + * @return void | |
| 42 | 43 | */ | 
| 43 | 44 | public function setCustomPlugins(array $customPlugins); | 
| 44 | 45 | |
| @@ -49,6 +50,7 @@ discard block | ||
| 49 | 50 | * set it on the Dwoo object as it will be passed onto the compiler automatically | 
| 50 | 51 | * | 
| 51 | 52 | * @param Dwoo_Security_Policy $policy the security policy object | 
| 53 | + * @return void | |
| 52 | 54 | */ | 
| 53 | 55 | public function setSecurityPolicy(Dwoo_Security_Policy $policy = null); | 
| 54 | 56 | } | 
| @@ -47,6 +47,9 @@ | ||
| 47 | 47 | |
| 48 | 48 | protected $corePluginDir; | 
| 49 | 49 | |
| 50 | + /** | |
| 51 | + * @param string $cacheDir | |
| 52 | + */ | |
| 50 | 53 | public function __construct($cacheDir) | 
| 51 | 54 |      { | 
| 52 | 55 | $this->corePluginDir = DWOO_DIRECTORY.'plugins'; | 
| @@ -286,7 +286,7 @@ | ||
| 286 | 286 | * @param Dwoo_Core $dwoo the dwoo instance that requests it | 
| 287 | 287 | * @param string $output the template output | 
| 288 | 288 | * | 
| 289 | - * @return mixed full path of the cached file or false upon failure | |
| 289 | + * @return false|string full path of the cached file or false upon failure | |
| 290 | 290 | */ | 
| 291 | 291 | public function cache(Dwoo_Core $dwoo, $output) | 
| 292 | 292 |      { | 
| @@ -57,6 +57,10 @@ | ||
| 57 | 57 | return $output; | 
| 58 | 58 | } | 
| 59 | 59 | |
| 60 | + /** | |
| 61 | + * @param string $dynamicId | |
| 62 | + * @param string $compiledFile | |
| 63 | + */ | |
| 60 | 64 | public static function unescape($output, $dynamicId, $compiledFile) | 
| 61 | 65 |      { | 
| 62 | 66 |          $output = preg_replace_callback('/<dwoo:dynamic_('.$dynamicId.')>(.+?)<\/dwoo:dynamic_'.$dynamicId.'>/s', array('self', 'unescapePhp'), $output, -1, $count); |