@@ -519,6 +519,9 @@ discard block |
||
| 519 | 519 | return self::__OK__; |
| 520 | 520 | } |
| 521 | 521 | |
| 522 | + /** |
|
| 523 | + * @param integer $entry_id |
|
| 524 | + */ |
|
| 522 | 525 | public function processRawFieldData($data, &$status, &$message = null, $simulate = false, $entry_id = null) |
| 523 | 526 | { |
| 524 | 527 | $status = self::__OK__; |
@@ -696,6 +699,10 @@ discard block |
||
| 696 | 699 | Filtering: |
| 697 | 700 | -------------------------------------------------------------------------*/ |
| 698 | 701 | |
| 702 | + /** |
|
| 703 | + * @param string $joins |
|
| 704 | + * @param string $where |
|
| 705 | + */ |
|
| 699 | 706 | public function buildDSRetrievalSQL($data, &$joins, &$where, $andOperation = false) |
| 700 | 707 | { |
| 701 | 708 | if (self::isFilterRegex($data[0])) { |
@@ -78,6 +78,9 @@ discard block |
||
| 78 | 78 | return ($rule ? General::validateString($data, $rule) : true); |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | + /** |
|
| 82 | + * @param string $value |
|
| 83 | + */ |
|
| 81 | 84 | private function __replaceAmpersands($value) |
| 82 | 85 | { |
| 83 | 86 | return preg_replace('/&(?!(#[0-9]+|#x[0-9a-f]+|amp|lt|gt);)/i', '&', trim($value)); |
@@ -169,6 +172,9 @@ discard block |
||
| 169 | 172 | return self::__OK__; |
| 170 | 173 | } |
| 171 | 174 | |
| 175 | + /** |
|
| 176 | + * @param integer $entry_id |
|
| 177 | + */ |
|
| 172 | 178 | public function processRawFieldData($data, &$status, &$message = null, $simulate = false, $entry_id = null) |
| 173 | 179 | { |
| 174 | 180 | $status = self::__OK__; |
@@ -357,6 +357,9 @@ |
||
| 357 | 357 | return Field::checkPostFieldData($data, $message, $entry_id); |
| 358 | 358 | } |
| 359 | 359 | |
| 360 | + /** |
|
| 361 | + * @param integer $entry_id |
|
| 362 | + */ |
|
| 360 | 363 | public function processRawFieldData($data, &$status, &$message = null, $simulate = false, $entry_id = null) |
| 361 | 364 | { |
| 362 | 365 | $status = self::__OK__; |
@@ -176,6 +176,10 @@ discard block |
||
| 176 | 176 | return $ids; |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | + /** |
|
| 180 | + * @param string $field |
|
| 181 | + * @param string $value |
|
| 182 | + */ |
|
| 179 | 183 | public function set($field, $value) |
| 180 | 184 | { |
| 181 | 185 | if ($field == 'pre_populate_source' && !is_array($value)) { |
@@ -413,6 +417,9 @@ discard block |
||
| 413 | 417 | return self::__OK__; |
| 414 | 418 | } |
| 415 | 419 | |
| 420 | + /** |
|
| 421 | + * @param integer $entry_id |
|
| 422 | + */ |
|
| 416 | 423 | public function processRawFieldData($data, &$status, &$message = null, $simulate = false, $entry_id = null) |
| 417 | 424 | { |
| 418 | 425 | $status = self::__OK__; |
@@ -341,6 +341,10 @@ |
||
| 341 | 341 | return $file; |
| 342 | 342 | } |
| 343 | 343 | |
| 344 | + /** |
|
| 345 | + * @param string $class |
|
| 346 | + * @param string $ext |
|
| 347 | + */ |
|
| 344 | 348 | private function findFileWithExtension($class, $ext) |
| 345 | 349 | { |
| 346 | 350 | // PSR-4 lookup |
@@ -122,6 +122,9 @@ discard block |
||
| 122 | 122 | return true; |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | + /** |
|
| 126 | + * @param string $file |
|
| 127 | + */ |
|
| 125 | 128 | public static function getMetaInfo($file, $type) |
| 126 | 129 | { |
| 127 | 130 | $meta = array(); |
@@ -286,6 +289,9 @@ discard block |
||
| 286 | 289 | } |
| 287 | 290 | } |
| 288 | 291 | |
| 292 | + /** |
|
| 293 | + * @param string $file |
|
| 294 | + */ |
|
| 289 | 295 | public function validateFilename($file, &$message) |
| 290 | 296 | { |
| 291 | 297 | if ($this->get('validator') != null) { |
@@ -401,6 +407,9 @@ discard block |
||
| 401 | 407 | return $this->validateFilename($data['name'], $message); |
| 402 | 408 | } |
| 403 | 409 | |
| 410 | + /** |
|
| 411 | + * @param integer $entry_id |
|
| 412 | + */ |
|
| 404 | 413 | public function processRawFieldData($data, &$status, &$message = null, $simulate = false, $entry_id = null) |
| 405 | 414 | { |
| 406 | 415 | $status = self::__OK__; |
@@ -632,7 +632,7 @@ discard block |
||
| 632 | 632 | * This methods sets the `GenericExceptionHandler::$enabled` value to `true`. |
| 633 | 633 | * |
| 634 | 634 | * @see core.SymphonyErrorPage |
| 635 | - * @param string|XMLElement $message |
|
| 635 | + * @param string $message |
|
| 636 | 636 | * A description for this error, which can be provided as a string |
| 637 | 637 | * or as an XMLElement. |
| 638 | 638 | * @param string $heading |
@@ -890,7 +890,7 @@ discard block |
||
| 890 | 890 | * is not found, `false` is returned |
| 891 | 891 | * |
| 892 | 892 | * @since Symphony 2.3 |
| 893 | - * @return mixed |
|
| 893 | + * @return string|false |
|
| 894 | 894 | * String, which is the path to the template if the template is found, |
| 895 | 895 | * false otherwise |
| 896 | 896 | */ |
@@ -1220,7 +1220,7 @@ discard block |
||
| 1220 | 1220 | * If the date type is set, only the calendar will be shown in the suggestion dropdown. |
| 1221 | 1221 | * |
| 1222 | 1222 | * @since Symphony 2.6.0 |
| 1223 | - * @return array |
|
| 1223 | + * @return string[] |
|
| 1224 | 1224 | */ |
| 1225 | 1225 | public function fetchSuggestionTypes() |
| 1226 | 1226 | { |
@@ -1313,7 +1313,7 @@ discard block |
||
| 1313 | 1313 | * |
| 1314 | 1314 | * @param string $string |
| 1315 | 1315 | * The string to test. |
| 1316 | - * @return boolean |
|
| 1316 | + * @return boolean|null |
|
| 1317 | 1317 | * True if the string is prefixed with `regexp:` or `not-regexp:`, false otherwise. |
| 1318 | 1318 | */ |
| 1319 | 1319 | protected static function isFilterRegex($string) |
@@ -1333,7 +1333,7 @@ discard block |
||
| 1333 | 1333 | * @link http://dev.mysql.com/doc/refman/5.5/en/regexp.html |
| 1334 | 1334 | * @param string $filter |
| 1335 | 1335 | * The full filter, eg. `regexp: ^[a-d]` |
| 1336 | - * @param array $columns |
|
| 1336 | + * @param string[] $columns |
|
| 1337 | 1337 | * The array of columns that need the given `$filter` applied to. The conditions |
| 1338 | 1338 | * will be added using `OR`. |
| 1339 | 1339 | * @param string $joins |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | * @param boolean $isFile (optional) |
| 105 | 105 | * if this is true, the method will attempt to read from a file, `$data` |
| 106 | 106 | * instead. |
| 107 | - * @param mixed $xsltProcessor (optional) |
|
| 107 | + * @param XsltProcess $xsltProcessor (optional) |
|
| 108 | 108 | * if set, the validation will be done using this XSLT processor rather |
| 109 | 109 | * than the built in XML parser. the default is null. |
| 110 | 110 | * @param string $encoding (optional) |
@@ -682,6 +682,10 @@ discard block |
||
| 682 | 682 | public static function getPostData() |
| 683 | 683 | { |
| 684 | 684 | if (!function_exists('merge_file_post_data')) { |
| 685 | + |
|
| 686 | + /** |
|
| 687 | + * @param string $type |
|
| 688 | + */ |
|
| 685 | 689 | function merge_file_post_data($type, array $file, &$post) |
| 686 | 690 | { |
| 687 | 691 | foreach ($file as $key => $value) { |
@@ -900,7 +904,7 @@ discard block |
||
| 900 | 904 | * the path of the file to write. |
| 901 | 905 | * @param mixed $data |
| 902 | 906 | * the data to write to the file. |
| 903 | - * @param integer|null $perm (optional) |
|
| 907 | + * @param integer $perm (optional) |
|
| 904 | 908 | * the permissions as an octal number to set set on the resulting file. |
| 905 | 909 | * this defaults to 0644 (if omitted or set to null) |
| 906 | 910 | * @param string $mode (optional) |
@@ -1100,7 +1104,7 @@ discard block |
||
| 1100 | 1104 | * @param mixed $strip_root (optional) |
| 1101 | 1105 | * If null, the full path to the file will be returned, otherwise the value |
| 1102 | 1106 | * of `strip_root` will be removed from the file path. |
| 1103 | - * @param array $exclude (optional) |
|
| 1107 | + * @param string[] $exclude (optional) |
|
| 1104 | 1108 | * ignore directories listed in this array. this defaults to an empty array. |
| 1105 | 1109 | * @param boolean $ignore_hidden (optional) |
| 1106 | 1110 | * ignore hidden directory (i.e.directories that begin with a period). this defaults |
@@ -1152,7 +1156,7 @@ discard block |
||
| 1152 | 1156 | * @param string $dir (optional) |
| 1153 | 1157 | * the path of the directory to construct the multi-dimensional array |
| 1154 | 1158 | * for. this defaults to '.'. |
| 1155 | - * @param array|string $filters (optional) |
|
| 1159 | + * @param string $filters (optional) |
|
| 1156 | 1160 | * either a regular expression to filter the files by or an array of |
| 1157 | 1161 | * files to include. |
| 1158 | 1162 | * @param boolean $recurse (optional) |
@@ -1345,6 +1349,7 @@ discard block |
||
| 1345 | 1349 | * the full path name of the source file to move. |
| 1346 | 1350 | * @param integer $perm (optional) |
| 1347 | 1351 | * the permissions to apply to the moved file. this defaults to 0777. |
| 1352 | + * @param string $dest_name |
|
| 1348 | 1353 | * @return boolean |
| 1349 | 1354 | * true if the file was moved and its permissions set as required. false otherwise. |
| 1350 | 1355 | */ |