@@ -417,7 +417,6 @@ |
||
| 417 | 417 | * getModuleConnectors |
| 418 | 418 | * |
| 419 | 419 | * @param String $module the module to get the connectors for |
| 420 | - * @param mixed $connectors Array of connectors mapped to the module or empty if none |
|
| 421 | 420 | * @return array |
| 422 | 421 | */ |
| 423 | 422 | public static function getModuleConnectors( |
@@ -232,6 +232,9 @@ discard block |
||
| 232 | 232 | //end function update_affected_order |
| 233 | 233 | } |
| 234 | 234 | |
| 235 | + /** |
|
| 236 | + * @param string $parent_id |
|
| 237 | + */ |
|
| 235 | 238 | function get_affected_id($parent_id, $list_order_x="", $list_order_y=""){ |
| 236 | 239 | |
| 237 | 240 | $query = " SELECT id from ".$this->focus->table_name." |
@@ -260,6 +263,9 @@ discard block |
||
| 260 | 263 | /////////////Wall Functions//////////////////// |
| 261 | 264 | |
| 262 | 265 | |
| 266 | +/** |
|
| 267 | + * @param string $parent_id |
|
| 268 | + */ |
|
| 263 | 269 | function check_wall($magnitude, $direction, $parent_id){ |
| 264 | 270 | |
| 265 | 271 | //TODO: jgreen - this is only single axis check_wall mechanism, will need to upgrade this to double axis |
@@ -364,6 +364,10 @@ discard block |
||
| 364 | 364 | } |
| 365 | 365 | |
| 366 | 366 | //Added as the rgraph charts do not use SugarCharts and this is where this method was previously |
| 367 | + |
|
| 368 | + /** |
|
| 369 | + * @param string $query |
|
| 370 | + */ |
|
| 367 | 371 | function getChartData($query) |
| 368 | 372 | { |
| 369 | 373 | global $app_list_strings, $db; |
@@ -390,6 +394,8 @@ discard block |
||
| 390 | 394 | string $keycolname1 We will sort by this key secondly, and it can be null, then it will only sort by the first column. |
| 391 | 395 | bool $translate1 Whether to trabslate the second column |
| 392 | 396 | bool $ifsort2 Whether to sort by the second column or just translate the second column. |
| 397 | + * @param string $keycolname1 |
|
| 398 | + * @param string $keycolname2 |
|
| 393 | 399 | * @return The sorted and translated data. |
| 394 | 400 | */ |
| 395 | 401 | function sortData($data_set, $keycolname1=null, $translate1=false, $keycolname2=null, $translate2=false, $ifsort2=false) { |
@@ -354,7 +354,7 @@ discard block |
||
| 354 | 354 | |
| 355 | 355 | /** |
| 356 | 356 | * Return DB error message for the last query executed |
| 357 | - * @return string Last error message |
|
| 357 | + * @return boolean Last error message |
|
| 358 | 358 | */ |
| 359 | 359 | public function lastError() |
| 360 | 360 | { |
@@ -1580,7 +1580,7 @@ discard block |
||
| 1580 | 1580 | /** |
| 1581 | 1581 | * Frees out previous results |
| 1582 | 1582 | * |
| 1583 | - * @param resource|bool $result optional, pass if you want to free a single result instead of all results |
|
| 1583 | + * @param boolean $result optional, pass if you want to free a single result instead of all results |
|
| 1584 | 1584 | */ |
| 1585 | 1585 | protected function freeResult($result = false) |
| 1586 | 1586 | { |
@@ -2697,7 +2697,7 @@ discard block |
||
| 2697 | 2697 | * @param bool|string $ensureUnique Ensure the name is unique |
| 2698 | 2698 | * @param string $type Name type (table, column) |
| 2699 | 2699 | * @param bool $force Force new name |
| 2700 | - * @return string|array Valid column name trimmed to right length and with invalid characters removed |
|
| 2700 | + * @return string Valid column name trimmed to right length and with invalid characters removed |
|
| 2701 | 2701 | */ |
| 2702 | 2702 | public function getValidDBName($name, $ensureUnique = false, $type = 'column', $force = false) |
| 2703 | 2703 | { |
@@ -3158,7 +3158,7 @@ discard block |
||
| 3158 | 3158 | * @param int $count |
| 3159 | 3159 | * @param bool $dieOnError |
| 3160 | 3160 | * @param string $msg |
| 3161 | - * @return resource|bool query result |
|
| 3161 | + * @return resource query result |
|
| 3162 | 3162 | * @see DBManager::limitQuery() |
| 3163 | 3163 | */ |
| 3164 | 3164 | public function limitQuerySql($sql, $start, $count, $dieOnError=false, $msg='') |
@@ -3385,7 +3385,7 @@ discard block |
||
| 3385 | 3385 | * @param bool $dieOnError Die on error, passed to query() |
| 3386 | 3386 | * @param string $msg Error message, passed to query() |
| 3387 | 3387 | * @param bool $suppress Supress errors, passed to query() |
| 3388 | - * @return resource|bool result set or success/failure bool |
|
| 3388 | + * @return boolean result set or success/failure bool |
|
| 3389 | 3389 | */ |
| 3390 | 3390 | public function queryArray(array $sqls, $dieOnError = false, $msg = '', $suppress = false) |
| 3391 | 3391 | { |
@@ -3508,7 +3508,7 @@ discard block |
||
| 3508 | 3508 | * @abstract |
| 3509 | 3509 | * If everything is OK, return true. |
| 3510 | 3510 | * If something's wrong, return array of error code and parameters |
| 3511 | - * @return mixed |
|
| 3511 | + * @return boolean |
|
| 3512 | 3512 | */ |
| 3513 | 3513 | public function canInstall() |
| 3514 | 3514 | { |
@@ -3773,7 +3773,7 @@ discard block |
||
| 3773 | 3773 | * @param array $fieldDefs |
| 3774 | 3774 | * @param string $action |
| 3775 | 3775 | * @param bool $ignoreRequired Optional, true if we should ignor this being a required field |
| 3776 | - * @return string|array |
|
| 3776 | + * @return string |
|
| 3777 | 3777 | */ |
| 3778 | 3778 | abstract protected function changeColumnSQL($tablename, $fieldDefs, $action, $ignoreRequired = false); |
| 3779 | 3779 | |
@@ -1298,7 +1298,7 @@ discard block |
||
| 1298 | 1298 | * modify operation |
| 1299 | 1299 | * @param string $action |
| 1300 | 1300 | * @param array $def |
| 1301 | - * @param bool $ignorRequired |
|
| 1301 | + * @param boolean $ignoreRequired |
|
| 1302 | 1302 | * @param string $tablename |
| 1303 | 1303 | */ |
| 1304 | 1304 | protected function alterSQLRep($action, array $def, $ignoreRequired, $tablename) |
@@ -1767,7 +1767,7 @@ discard block |
||
| 1767 | 1767 | /** |
| 1768 | 1768 | * Saves changes to module's audit table |
| 1769 | 1769 | * |
| 1770 | - * @param object $bean Sugarbean instance |
|
| 1770 | + * @param SugarBean $bean Sugarbean instance |
|
| 1771 | 1771 | * @param array $changes changes |
| 1772 | 1772 | */ |
| 1773 | 1773 | public function save_audit_records(SugarBean $bean, $changes) |
@@ -1876,7 +1876,7 @@ discard block |
||
| 1876 | 1876 | * This is a utility function to prepend the "N" character in front of SQL values that are |
| 1877 | 1877 | * surrounded by single quotes. |
| 1878 | 1878 | * |
| 1879 | - * @param $sql string SQL statement |
|
| 1879 | + * @param string $sql string SQL statement |
|
| 1880 | 1880 | * @return string SQL statement with single quote values prepended with "N" character for nvarchar columns |
| 1881 | 1881 | */ |
| 1882 | 1882 | protected function _appendN($sql) |
@@ -1947,7 +1947,7 @@ discard block |
||
| 1947 | 1947 | |
| 1948 | 1948 | /** |
| 1949 | 1949 | * Generate fulltext query from set of terms |
| 1950 | - * @param string $fields Field to search against |
|
| 1950 | + * @param string $field Field to search against |
|
| 1951 | 1951 | * @param array $terms Search terms that may be or not be in the result |
| 1952 | 1952 | * @param array $must_terms Search terms that have to be in the result |
| 1953 | 1953 | * @param array $exclude_terms Search terms that have to be not in the result |
@@ -651,7 +651,7 @@ discard block |
||
| 651 | 651 | /** |
| 652 | 652 | * Returns the name of the engine to use or null if we are to use the default |
| 653 | 653 | * |
| 654 | - * @param object $bean SugarBean instance |
|
| 654 | + * @param SugarBean $bean SugarBean instance |
|
| 655 | 655 | * @return string |
| 656 | 656 | */ |
| 657 | 657 | protected function getEngine($bean) |
@@ -1149,7 +1149,7 @@ discard block |
||
| 1149 | 1149 | |
| 1150 | 1150 | /** |
| 1151 | 1151 | * Generate fulltext query from set of terms |
| 1152 | - * @param string $fields Field to search against |
|
| 1152 | + * @param string $field Field to search against |
|
| 1153 | 1153 | * @param array $terms Search terms that may be or not be in the result |
| 1154 | 1154 | * @param array $must_terms Search terms that have to be in the result |
| 1155 | 1155 | * @param array $exclude_terms Search terms that have to be not in the result |
@@ -1276,6 +1276,9 @@ discard block |
||
| 1276 | 1276 | return ''; |
| 1277 | 1277 | } |
| 1278 | 1278 | |
| 1279 | + /** |
|
| 1280 | + * @param string $querytype |
|
| 1281 | + */ |
|
| 1279 | 1282 | protected function verifyGenericReplaceQuery($querytype, $table, $query) |
| 1280 | 1283 | { |
| 1281 | 1284 | $this->log->debug("verifying $querytype statement"); |
@@ -540,7 +540,7 @@ |
||
| 540 | 540 | |
| 541 | 541 | /** |
| 542 | 542 | * Execute data manipulation statement, then roll it back |
| 543 | - * @param $type |
|
| 543 | + * @param string $type |
|
| 544 | 544 | * @param $table |
| 545 | 545 | * @param $query |
| 546 | 546 | * @return string |
@@ -237,6 +237,9 @@ discard block |
||
| 237 | 237 | return $object; |
| 238 | 238 | } |
| 239 | 239 | |
| 240 | + /** |
|
| 241 | + * @param boolean $isfirstview |
|
| 242 | + */ |
|
| 240 | 243 | function populateQueryWhere($isfirstview, $html_varName){ |
| 241 | 244 | if($isfirstview){ |
| 242 | 245 | $this->query_where = $this->getVariableFromSession($_REQUEST['module'], 'QUERY_WHERE'); |
@@ -454,7 +457,7 @@ discard block |
||
| 454 | 457 | * Return a variable from the session. uses the new ListView session data. Hence the '2' |
| 455 | 458 | * |
| 456 | 459 | * @param unknown_type $name - the name of the variable to set in the session |
| 457 | - * @param unknown_type $value - the value of the variable to set |
|
| 460 | + * @param string $value - the value of the variable to set |
|
| 458 | 461 | */ |
| 459 | 462 | function getVariableFromSession($name, $value){ |
| 460 | 463 | if(isset($_SESSION[$name."2_".$value])){ |
@@ -54,10 +54,10 @@ |
||
| 54 | 54 | * This is the DetailView constructor responsible for processing the new |
| 55 | 55 | * Meta-Data framework |
| 56 | 56 | * |
| 57 | - * @param $module String value of module this detail view is for |
|
| 57 | + * @param string $module String value of module this detail view is for |
|
| 58 | 58 | * @param $focus An empty sugarbean object of module |
| 59 | 59 | * @param $id The record id to retrieve and populate data for |
| 60 | - * @param $metadataFile String value of file location to use in overriding default metadata file |
|
| 60 | + * @param string $metadataFile String value of file location to use in overriding default metadata file |
|
| 61 | 61 | * @param tpl String value of file location to use in overriding default Smarty template |
| 62 | 62 | */ |
| 63 | 63 | |