@@ -32,6 +32,9 @@ |
||
| 32 | 32 | } |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | +/** |
|
| 36 | + * @param string $src |
|
| 37 | + */ |
|
| 35 | 38 | function parse($src,$ph,$left='[+',$right='+]') |
| 36 | 39 | { |
| 37 | 40 | foreach($ph as $k=>$v) |
@@ -565,6 +565,9 @@ discard block |
||
| 565 | 565 | |
| 566 | 566 | } |
| 567 | 567 | |
| 568 | +/** |
|
| 569 | + * @param string $file |
|
| 570 | + */ |
|
| 568 | 571 | function determineIcon($file, $selFile, $mode) |
| 569 | 572 | { |
| 570 | 573 | $icons = array( |
@@ -709,6 +712,9 @@ discard block |
||
| 709 | 712 | return $path; |
| 710 | 713 | } |
| 711 | 714 | |
| 715 | +/** |
|
| 716 | + * @param string $string |
|
| 717 | + */ |
|
| 712 | 718 | function getExtension($string) |
| 713 | 719 | { |
| 714 | 720 | $pos = strrpos($string, '.'); |
@@ -744,6 +750,9 @@ discard block |
||
| 744 | 750 | return @mkdir($strPath); |
| 745 | 751 | } |
| 746 | 752 | |
| 753 | +/** |
|
| 754 | + * @param string $type |
|
| 755 | + */ |
|
| 747 | 756 | function logFileChange($type, $filename) |
| 748 | 757 | { |
| 749 | 758 | //global $_lang; |
@@ -160,6 +160,11 @@ discard block |
||
| 160 | 160 | return $output; |
| 161 | 161 | } |
| 162 | 162 | |
| 163 | +/** |
|
| 164 | + * @param integer $parent |
|
| 165 | + * @param string $filedir |
|
| 166 | + * @param string $mode |
|
| 167 | + */ |
|
| 163 | 168 | function importFiles($parent, $filedir, $files, $mode) { |
| 164 | 169 | global $modx; |
| 165 | 170 | global $_lang, $allowedfiles; |
@@ -302,6 +307,9 @@ discard block |
||
| 302 | 307 | } |
| 303 | 308 | } |
| 304 | 309 | |
| 310 | +/** |
|
| 311 | + * @param string $directory |
|
| 312 | + */ |
|
| 305 | 313 | function getFiles($directory, $listing = array(), $count = 0) { |
| 306 | 314 | global $_lang; |
| 307 | 315 | global $filesfound; |
@@ -326,6 +334,9 @@ discard block |
||
| 326 | 334 | return ($listing); |
| 327 | 335 | } |
| 328 | 336 | |
| 337 | +/** |
|
| 338 | + * @param string $filepath |
|
| 339 | + */ |
|
| 329 | 340 | function getFileContent($filepath) { |
| 330 | 341 | global $_lang; |
| 331 | 342 | // get the file |
@@ -353,6 +364,9 @@ discard block |
||
| 353 | 364 | return $new_array; |
| 354 | 365 | } |
| 355 | 366 | |
| 367 | +/** |
|
| 368 | + * @param null|string $src |
|
| 369 | + */ |
|
| 356 | 370 | function treatContent($src, $filename, $alias) { |
| 357 | 371 | global $modx; |
| 358 | 372 | |
@@ -16,6 +16,7 @@ discard block |
||
| 16 | 16 | /** |
| 17 | 17 | * get_langs_by_key |
| 18 | 18 | * |
| 19 | + * @param string $key |
|
| 19 | 20 | * @return array of languages that define the key in their file |
| 20 | 21 | */ |
| 21 | 22 | function get_langs_by_key($key) {
|
@@ -36,7 +37,7 @@ discard block |
||
| 36 | 37 | * |
| 37 | 38 | * @param string $key specify language key to return options of langauges that override it, default return all languages |
| 38 | 39 | * @param string $selected_lang specify language to select in option list, default none |
| 39 | - * @return html option list |
|
| 40 | + * @return string option list |
|
| 40 | 41 | */ |
| 41 | 42 | function get_lang_options($key=null, $selected_lang=null) {
|
| 42 | 43 | global $lang_keys, $_lang; |
@@ -504,6 +504,9 @@ |
||
| 504 | 504 | return $iconsPrivate; |
| 505 | 505 | } |
| 506 | 506 | |
| 507 | +/** |
|
| 508 | + * @return string |
|
| 509 | + */ |
|
| 507 | 510 | function getNodeTitle($nodeNameSource, $row) { |
| 508 | 511 | global $modx; |
| 509 | 512 | |
@@ -3,6 +3,9 @@ |
||
| 3 | 3 | //Kyle Jaebker - 08/07/06 |
| 4 | 4 | |
| 5 | 5 | //Create a new category |
| 6 | +/** |
|
| 7 | + * @param string $newCat |
|
| 8 | + */ |
|
| 6 | 9 | function newCategory($newCat) { |
| 7 | 10 | global $modx; |
| 8 | 11 | $useTable = $modx->getFullTableName('categories'); |
@@ -52,6 +52,9 @@ discard block |
||
| 52 | 52 | var $selPageClass; |
| 53 | 53 | var $noRecordMsg = "No records found."; |
| 54 | 54 | |
| 55 | + /** |
|
| 56 | + * @param string $id |
|
| 57 | + */ |
|
| 55 | 58 | function __construct($id, $ds, $pageSize = 20, $pageNumber = -1) { |
| 56 | 59 | global $__DataGridCnt; |
| 57 | 60 | |
@@ -187,6 +190,9 @@ discard block |
||
| 187 | 190 | |
| 188 | 191 | // format column values |
| 189 | 192 | |
| 193 | + /** |
|
| 194 | + * @param integer $n |
|
| 195 | + */ |
|
| 190 | 196 | function RenderRowFnc($n, $row) { |
| 191 | 197 | if($this->_alt == 0) { |
| 192 | 198 | $Style = $this->_itemStyle; |
@@ -73,6 +73,9 @@ |
||
| 73 | 73 | $this->pageSize = $ps; |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | + /** |
|
| 77 | + * @param DataGrid $fncName |
|
| 78 | + */ |
|
| 76 | 79 | function setRenderRowFnc($fncName, $args = "") { |
| 77 | 80 | $this->renderRowFnc = &$fncName; |
| 78 | 81 | $this->renderRowFncArgs = $args; // extra agruments |
@@ -3968,7 +3968,7 @@ |
||
| 3968 | 3968 | * @param int|string $options Either a PATHINFO_* constant, |
| 3969 | 3969 | * or a string name to return only the specified piece |
| 3970 | 3970 | * |
| 3971 | - * @return string|array |
|
| 3971 | + * @return string |
|
| 3972 | 3972 | */ |
| 3973 | 3973 | public static function mb_pathinfo($path, $options = null) |
| 3974 | 3974 | { |