@@ -369,7 +369,6 @@ discard block |
||
369 | 369 | /** |
370 | 370 | * Returns the modulus of the numerical position of the item in the data set. |
371 | 371 | * The count starts from $startIndex, which defaults to 1. |
372 | - * @param int $Mod The number to perform Mod operation to. |
|
373 | 372 | * @param int $startIndex Number to start count from. |
374 | 373 | * @return int |
375 | 374 | */ |
@@ -443,6 +442,10 @@ discard block |
||
443 | 442 | $this->underlay = $underlay ? $underlay : array(); |
444 | 443 | } |
445 | 444 | |
445 | + /** |
|
446 | + * @param string $interfaceToQuery |
|
447 | + * @param string $variableMethod |
|
448 | + */ |
|
446 | 449 | protected function createCallableArray(&$extraArray, $interfaceToQuery, $variableMethod, $createObject = false) { |
447 | 450 | $implementers = ClassInfo::implementorsOf($interfaceToQuery); |
448 | 451 | if($implementers) foreach($implementers as $implementer) { |
@@ -843,7 +846,7 @@ discard block |
||
843 | 846 | * |
844 | 847 | * @param $className string - valid class name |
845 | 848 | * @param $suffix string |
846 | - * @param $baseClass string |
|
849 | + * @param string $baseClass string |
|
847 | 850 | * |
848 | 851 | * @return array |
849 | 852 | */ |
@@ -873,7 +876,7 @@ discard block |
||
873 | 876 | } |
874 | 877 | |
875 | 878 | /** |
876 | - * @param string|array $templateList If passed as a string with .ss extension, used as the "main" template. |
|
879 | + * @param string|array $templates If passed as a string with .ss extension, used as the "main" template. |
|
877 | 880 | * If passed as an array, it can be used for template inheritance (first found template "wins"). |
878 | 881 | * Usually the array values are PHP class names, which directly correlate to template names. |
879 | 882 | * <code> |
@@ -1227,7 +1230,7 @@ discard block |
||
1227 | 1230 | * @param string $template Template name |
1228 | 1231 | * @param mixed $data Data context |
1229 | 1232 | * @param array $arguments Additional arguments |
1230 | - * @return string Evaluated result |
|
1233 | + * @return DBHTMLText Evaluated result |
|
1231 | 1234 | */ |
1232 | 1235 | public static function execute_template($template, $data, $arguments = null, $scope = null) { |
1233 | 1236 | $v = new SSViewer($template); |
@@ -1253,6 +1256,9 @@ discard block |
||
1253 | 1256 | return $v->process($data, $arguments); |
1254 | 1257 | } |
1255 | 1258 | |
1259 | + /** |
|
1260 | + * @param string $content |
|
1261 | + */ |
|
1256 | 1262 | public function parseTemplateContent($content, $template="") { |
1257 | 1263 | return $this->getParser()->compileString( |
1258 | 1264 | $content, |
@@ -1282,7 +1288,7 @@ discard block |
||
1282 | 1288 | * Return an appropriate base tag for the given template. |
1283 | 1289 | * It will be closed on an XHTML document, and unclosed on an HTML document. |
1284 | 1290 | * |
1285 | - * @param $contentGeneratedSoFar The content of the template generated so far; it should contain |
|
1291 | + * @param string $contentGeneratedSoFar The content of the template generated so far; it should contain |
|
1286 | 1292 | * the DOCTYPE declaration. |
1287 | 1293 | */ |
1288 | 1294 | public static function get_base_tag($contentGeneratedSoFar) { |
@@ -1323,6 +1329,9 @@ discard block |
||
1323 | 1329 | */ |
1324 | 1330 | protected $cacheTemplate; |
1325 | 1331 | |
1332 | + /** |
|
1333 | + * @param string $content |
|
1334 | + */ |
|
1326 | 1335 | public function __construct($content, TemplateParser $parser = null) { |
1327 | 1336 | if ($parser) { |
1328 | 1337 | $this->setParser($parser); |
@@ -24,10 +24,17 @@ discard block |
||
24 | 24 | self::$instance = $instance; |
25 | 25 | } |
26 | 26 | |
27 | + /** |
|
28 | + * @param string $base |
|
29 | + */ |
|
27 | 30 | public function __construct($base = null) { |
28 | 31 | $this->base = $base ? $base : BASE_PATH; |
29 | 32 | } |
30 | 33 | |
34 | + /** |
|
35 | + * @param string $set |
|
36 | + * @param ThemeManifest $manifest |
|
37 | + */ |
|
31 | 38 | public function addSet($set, $manifest) { |
32 | 39 | $this->sets[$set] = $manifest; |
33 | 40 | } |
@@ -72,8 +79,8 @@ discard block |
||
72 | 79 | * format "type/name", where type is the type of template to search for |
73 | 80 | * (e.g. Includes, Layout). |
74 | 81 | * |
75 | - * @param string|array $templates |
|
76 | - * @param string $theme |
|
82 | + * @param string|array $template |
|
83 | + * @param string $themes |
|
77 | 84 | * |
78 | 85 | * @return array |
79 | 86 | */ |