@@ -573,7 +573,7 @@ |
||
| 573 | 573 | * generated view. |
| 574 | 574 | * @param $showTitle boolean value indicating whether or not to show a title on the resulting page |
| 575 | 575 | * @param $ajaxSave boolean value indicating whether or not the operation is an Ajax save request |
| 576 | - * @return HTML display for view as String |
|
| 576 | + * @return string display for view as String |
|
| 577 | 577 | */ |
| 578 | 578 | function display($showTitle = true, $ajaxSave = false) |
| 579 | 579 | { |
@@ -186,7 +186,7 @@ |
||
| 186 | 186 | * 4. module/editviewdefs.php |
| 187 | 187 | * |
| 188 | 188 | * @param $module |
| 189 | - * @param $view |
|
| 189 | + * @param string $view |
|
| 190 | 190 | * @return string The path to the viewdefs file to use |
| 191 | 191 | */ |
| 192 | 192 | public function getModuleViewDefsSourceFile($module, $view) { |
@@ -46,6 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | 48 | * records the query in the session for later retrieval |
| 49 | + * @param string $query |
|
| 49 | 50 | */ |
| 50 | 51 | static function store($module, $query){ |
| 51 | 52 | $_SESSION[$module .'2_QUERY'] = $query; |
@@ -79,6 +80,9 @@ discard block |
||
| 79 | 80 | return $menu; |
| 80 | 81 | } |
| 81 | 82 | |
| 83 | + /** |
|
| 84 | + * @param string $module |
|
| 85 | + */ |
|
| 82 | 86 | static function menu($module, $offset, $isAuditEnabled, $saveAndContinue = false ){ |
| 83 | 87 | $html_text = ""; |
| 84 | 88 | if ($offset < 0) |
@@ -173,6 +177,9 @@ discard block |
||
| 173 | 177 | return $ids; |
| 174 | 178 | } |
| 175 | 179 | |
| 180 | + /** |
|
| 181 | + * @param string $module |
|
| 182 | + */ |
|
| 176 | 183 | static function recordIDs($module, $rids, $offset, $totalCount){ |
| 177 | 184 | $index = $offset; |
| 178 | 185 | $index++; |
@@ -110,6 +110,9 @@ discard block |
||
| 110 | 110 | return array('success' => true); |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | + /** |
|
| 114 | + * @param string $value |
|
| 115 | + */ |
|
| 113 | 116 | protected function getValue($value) |
| 114 | 117 | { |
| 115 | 118 | if(!empty($this->$value)) { |
@@ -209,7 +212,7 @@ discard block |
||
| 209 | 212 | * that are being checked deal with handling the behavior of closing/hiding windows/tabs that |
| 210 | 213 | * are displayed when prompting for OAUTH validation |
| 211 | 214 | * |
| 212 | - * @param $callback_url String value of callback URL |
|
| 215 | + * @param string $callback_url String value of callback URL |
|
| 213 | 216 | * @return String value of URL with applicable formatting |
| 214 | 217 | */ |
| 215 | 218 | protected function formatCallbackURL($callback_url) |
@@ -151,6 +151,9 @@ discard block |
||
| 151 | 151 | return $retval; |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | + /** |
|
| 155 | + * @param string $contentType |
|
| 156 | + */ |
|
| 154 | 157 | function doPost($url, $content, $contentType, $charset = null) |
| 155 | 158 | { |
| 156 | 159 | $retval = $this->doRequest($url, "POST", $content, $contentType); |
@@ -367,6 +370,10 @@ discard block |
||
| 367 | 370 | return CMISRepositoryWrapper :: extractObjectFromNode($doc); |
| 368 | 371 | |
| 369 | 372 | } |
| 373 | + |
|
| 374 | + /** |
|
| 375 | + * @param DOMDocument $xmlnode |
|
| 376 | + */ |
|
| 370 | 377 | static function extractObjectFromNode($xmlnode) |
| 371 | 378 | { |
| 372 | 379 | // Extracts the contents of an Object and organizes them into: |
@@ -430,6 +437,10 @@ discard block |
||
| 430 | 437 | return CMISRepositoryWrapper :: extractTypeDefFromNode($doc); |
| 431 | 438 | |
| 432 | 439 | } |
| 440 | + |
|
| 441 | + /** |
|
| 442 | + * @param DOMDocument $xmlnode |
|
| 443 | + */ |
|
| 433 | 444 | static function extractTypeDefFromNode($xmlnode) |
| 434 | 445 | { |
| 435 | 446 | // Extracts the contents of an Object and organizes them into: |
@@ -501,6 +512,10 @@ discard block |
||
| 501 | 512 | $doc->loadXML($xmldata); |
| 502 | 513 | return CMISRepositoryWrapper :: extractObjectFeedFromNode($doc); |
| 503 | 514 | } |
| 515 | + |
|
| 516 | + /** |
|
| 517 | + * @param DOMDocument $xmlnode |
|
| 518 | + */ |
|
| 504 | 519 | static function extractObjectFeedFromNode($xmlnode) |
| 505 | 520 | { |
| 506 | 521 | // Process a feed and extract the objects |
@@ -533,6 +548,10 @@ discard block |
||
| 533 | 548 | $doc->loadXML($xmldata); |
| 534 | 549 | return CMISRepositoryWrapper :: extractTypeFeedFromNode($doc); |
| 535 | 550 | } |
| 551 | + |
|
| 552 | + /** |
|
| 553 | + * @param DOMDocument $xmlnode |
|
| 554 | + */ |
|
| 536 | 555 | static function extractTypeFeedFromNode($xmlnode) |
| 537 | 556 | { |
| 538 | 557 | // Process a feed and extract the objects |
@@ -560,6 +579,10 @@ discard block |
||
| 560 | 579 | $doc->loadXML($xmldata); |
| 561 | 580 | return CMISRepositoryWrapper :: extractWorkspaceFromNode($doc); |
| 562 | 581 | } |
| 582 | + |
|
| 583 | + /** |
|
| 584 | + * @param DOMDocument $xmlnode |
|
| 585 | + */ |
|
| 563 | 586 | static function extractWorkspaceFromNode($xmlnode) |
| 564 | 587 | { |
| 565 | 588 | // Assumes only one workspace for now |
@@ -672,6 +695,9 @@ discard block |
||
| 672 | 695 | $this->_objTypeId_cache[$obj->id] = $obj->properties["cmis:objectTypeId"]; |
| 673 | 696 | } |
| 674 | 697 | |
| 698 | + /** |
|
| 699 | + * @param stdClass $objs |
|
| 700 | + */ |
|
| 675 | 701 | function cacheFeedInfo($objs) |
| 676 | 702 | { |
| 677 | 703 | foreach ($objs->objectList as $obj) |
@@ -680,6 +706,9 @@ discard block |
||
| 680 | 706 | } |
| 681 | 707 | } |
| 682 | 708 | |
| 709 | + /** |
|
| 710 | + * @param stdClass $typs |
|
| 711 | + */ |
|
| 683 | 712 | function cacheTypeFeedInfo($typs) |
| 684 | 713 | { |
| 685 | 714 | foreach ($typs->objectList as $typ) |
@@ -724,6 +753,9 @@ discard block |
||
| 724 | 753 | return $obj->properties["cmis:name"]; |
| 725 | 754 | } |
| 726 | 755 | |
| 756 | + /** |
|
| 757 | + * @param string $linkName |
|
| 758 | + */ |
|
| 727 | 759 | function getTypeLink($typeId, $linkName) |
| 728 | 760 | { |
| 729 | 761 | if ($this->_type_cache[$typeId]->links) |
@@ -734,6 +766,9 @@ discard block |
||
| 734 | 766 | return $typ->links[$linkName]; |
| 735 | 767 | } |
| 736 | 768 | |
| 769 | + /** |
|
| 770 | + * @param string $linkName |
|
| 771 | + */ |
|
| 737 | 772 | function getLink($objectId, $linkName) |
| 738 | 773 | { |
| 739 | 774 | if ($this->_link_cache[$objectId][$linkName]) |
@@ -235,6 +235,9 @@ discard block |
||
| 235 | 235 | } |
| 236 | 236 | |
| 237 | 237 | //eggsurplus: abstract to simplify unit testing |
| 238 | +/** |
|
| 239 | + * @return string |
|
| 240 | + */ |
|
| 238 | 241 | function buildRedirectURL($return_id='', $return_module='') |
| 239 | 242 | { |
| 240 | 243 | if(isset($_REQUEST['return_module']) && $_REQUEST['return_module'] != "") |
@@ -339,6 +342,9 @@ discard block |
||
| 339 | 342 | } |
| 340 | 343 | } |
| 341 | 344 | |
| 345 | +/** |
|
| 346 | + * @param string $fieldname |
|
| 347 | + */ |
|
| 342 | 348 | function getLikeForEachWord($fieldname, $value, $minsize=4) |
| 343 | 349 | { |
| 344 | 350 | $value = trim($value); |
@@ -62,11 +62,18 @@ |
||
| 62 | 62 | $this->DBHelper = $GLOBALS['db']; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | + /** |
|
| 66 | + * @param string $key |
|
| 67 | + * @param string $value |
|
| 68 | + */ |
|
| 65 | 69 | function setAttribute($key,$value) |
| 66 | 70 | { |
| 67 | 71 | $this->defs[$key] = $value; |
| 68 | 72 | } |
| 69 | 73 | |
| 74 | + /** |
|
| 75 | + * @param string $key |
|
| 76 | + */ |
|
| 70 | 77 | function setAttributePtr($key,&$value) |
| 71 | 78 | { |
| 72 | 79 | $this->defs[$key] = $value; |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | /** |
| 67 | 67 | * getSubpanelWidgetId |
| 68 | 68 | * This is a utility function to return a widget's unique id |
| 69 | - * @return id String label of the widget's unique id |
|
| 69 | + * @return string String label of the widget's unique id |
|
| 70 | 70 | */ |
| 71 | 71 | public function getWidgetId() { |
| 72 | 72 | return $this->widget_id; |
@@ -100,6 +100,7 @@ discard block |
||
| 100 | 100 | * argument exceed 28 charcters, it creates an alias using the first 22 characters of the column_name |
| 101 | 101 | * plus an md5 of the first 6 characters of the lowercased column_name value. |
| 102 | 102 | * |
| 103 | + * @param string $column_name |
|
| 103 | 104 | */ |
| 104 | 105 | protected function getTruncatedColumnAlias($column_name) |
| 105 | 106 | { |
@@ -507,6 +507,9 @@ |
||
| 507 | 507 | return $order_by; |
| 508 | 508 | } |
| 509 | 509 | |
| 510 | + /** |
|
| 511 | + * @return string |
|
| 512 | + */ |
|
| 510 | 513 | function displayListPlain($layout_def) { |
| 511 | 514 | global $timedate; |
| 512 | 515 | $content = parent:: displayListPlain($layout_def); |