@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | * @param string $mode Clean mode |
| 280 | 280 | * @param array $tags Array of tags |
| 281 | 281 | * @throws Zend_Cache_Exception |
| 282 | - * @return boolean true if no problem |
|
| 282 | + * @return boolean|null true if no problem |
|
| 283 | 283 | */ |
| 284 | 284 | public function clean($mode = Zend_Cache::CLEANING_MODE_ALL, $tags = array()) |
| 285 | 285 | { |
@@ -509,6 +509,9 @@ discard block |
||
| 509 | 509 | $this->_slowBackend->___expire($id); |
| 510 | 510 | } |
| 511 | 511 | |
| 512 | + /** |
|
| 513 | + * @param string $mode |
|
| 514 | + */ |
|
| 512 | 515 | private function _getFastFillingPercentage($mode) |
| 513 | 516 | { |
| 514 | 517 | |
@@ -162,7 +162,7 @@ |
||
| 162 | 162 | * @param string $mode clean mode |
| 163 | 163 | * @param array $tags array of tags |
| 164 | 164 | * @throws Zend_Cache_Exception |
| 165 | - * @return boolean true if no problem |
|
| 165 | + * @return boolean|null true if no problem |
|
| 166 | 166 | */ |
| 167 | 167 | public function clean($mode = Zend_Cache::CLEANING_MODE_ALL, $tags = array()) |
| 168 | 168 | { |
@@ -180,7 +180,7 @@ |
||
| 180 | 180 | * @param string $mode Clean mode |
| 181 | 181 | * @param array $tags Array of tags |
| 182 | 182 | * @throws Zend_Cache_Exception |
| 183 | - * @return boolean True if no problem |
|
| 183 | + * @return boolean|null True if no problem |
|
| 184 | 184 | */ |
| 185 | 185 | public function clean($mode = Zend_Cache::CLEANING_MODE_ALL, $tags = array()) |
| 186 | 186 | { |
@@ -116,6 +116,7 @@ discard block |
||
| 116 | 116 | /** |
| 117 | 117 | * Compute & return the expire time |
| 118 | 118 | * |
| 119 | + * @param integer $lifetime |
|
| 119 | 120 | * @return int expire time (unix timestamp) |
| 120 | 121 | */ |
| 121 | 122 | private function _expireTime($lifetime) |
@@ -181,7 +182,7 @@ discard block |
||
| 181 | 182 | * @param string $mode clean mode |
| 182 | 183 | * @param array $tags array of tags |
| 183 | 184 | * @throws Zend_Cache_Exception |
| 184 | - * @return boolean true if no problem |
|
| 185 | + * @return boolean|null true if no problem |
|
| 185 | 186 | */ |
| 186 | 187 | public function clean($mode = Zend_Cache::CLEANING_MODE_ALL, $tags = array()) |
| 187 | 188 | { |
@@ -244,6 +244,7 @@ |
||
| 244 | 244 | * ZF-9970 |
| 245 | 245 | * |
| 246 | 246 | * @deprecated |
| 247 | + * @param string $name |
|
| 247 | 248 | */ |
| 248 | 249 | private function _makeId($name, $args) |
| 249 | 250 | { |
@@ -117,6 +117,7 @@ |
||
| 117 | 117 | * ZF-9970 |
| 118 | 118 | * |
| 119 | 119 | * @deprecated |
| 120 | + * @param callable $callback |
|
| 120 | 121 | */ |
| 121 | 122 | private function _makeId($callback, array $args) |
| 122 | 123 | { |
@@ -123,7 +123,6 @@ discard block |
||
| 123 | 123 | * Constructor |
| 124 | 124 | * |
| 125 | 125 | * @param array $options Associative array of options |
| 126 | - * @param boolean $doNotTestCacheValidity If set to true, the cache validity won't be tested |
|
| 127 | 126 | * @throws Zend_Cache_Exception |
| 128 | 127 | * @return void |
| 129 | 128 | */ |
@@ -205,7 +204,6 @@ discard block |
||
| 205 | 204 | /** |
| 206 | 205 | * Specific setter for the 'regexps' option (with some additional tests) |
| 207 | 206 | * |
| 208 | - * @param array $options Associative array |
|
| 209 | 207 | * @throws Zend_Cache_Exception |
| 210 | 208 | * @return void |
| 211 | 209 | */ |
@@ -237,7 +235,7 @@ discard block |
||
| 237 | 235 | * |
| 238 | 236 | * @param string $id (optional) A cache id (if you set a value here, maybe you have to use Output frontend instead) |
| 239 | 237 | * @param boolean $doNotDie For unit testing only ! |
| 240 | - * @return boolean True if the cache is hit (false else) |
|
| 238 | + * @return boolean|null True if the cache is hit (false else) |
|
| 241 | 239 | */ |
| 242 | 240 | public function start($id = false, $doNotDie = false) |
| 243 | 241 | { |
@@ -335,7 +333,7 @@ discard block |
||
| 335 | 333 | /** |
| 336 | 334 | * Make an id depending on REQUEST_URI and superglobal arrays (depending on options) |
| 337 | 335 | * |
| 338 | - * @return mixed|false a cache id (string), false if the cache should have not to be used |
|
| 336 | + * @return false|string a cache id (string), false if the cache should have not to be used |
|
| 339 | 337 | */ |
| 340 | 338 | protected function _makeId() |
| 341 | 339 | { |
@@ -358,7 +356,7 @@ discard block |
||
| 358 | 356 | * @param string $arrayName Superglobal array name |
| 359 | 357 | * @param bool $bool1 If true, cache is still on even if there are some variables in the superglobal array |
| 360 | 358 | * @param bool $bool2 If true, we have to use the content of the superglobal array to make a partial id |
| 361 | - * @return mixed|false Partial id (string) or false if the cache should have not to be used |
|
| 359 | + * @return false|string Partial id (string) or false if the cache should have not to be used |
|
| 362 | 360 | */ |
| 363 | 361 | protected function _makePartialId($arrayName, $bool1, $bool2) |
| 364 | 362 | { |
@@ -673,7 +673,7 @@ |
||
| 673 | 673 | * |
| 674 | 674 | * @param float|integer|Zend_Currency $value Compares the currency with this value |
| 675 | 675 | * @param string|Zend_Currency $currency The currency to compare this value from |
| 676 | - * @return Zend_Currency |
|
| 676 | + * @return integer |
|
| 677 | 677 | */ |
| 678 | 678 | public function compare($value, $currency = null) |
| 679 | 679 | { |
@@ -377,7 +377,7 @@ discard block |
||
| 377 | 377 | /** |
| 378 | 378 | * Subtracts a timestamp |
| 379 | 379 | * |
| 380 | - * @param integer|string|array|Zend_Date $timestamp Timestamp to sub |
|
| 380 | + * @param integer $timestamp Timestamp to sub |
|
| 381 | 381 | * @return Zend_Date Provides fluid interface |
| 382 | 382 | * @throws Zend_Date_Exception |
| 383 | 383 | */ |
@@ -1231,8 +1231,8 @@ discard block |
||
| 1231 | 1231 | * |
| 1232 | 1232 | * @param string $calc Calculation to make |
| 1233 | 1233 | * @param string|integer $date Date for calculation |
| 1234 | - * @param string|integer $comp Second date for calculation |
|
| 1235 | - * @param boolean|integer $dst Use dst correction if option is set |
|
| 1234 | + * @param integer $comp Second date for calculation |
|
| 1235 | + * @param string|false $dst Use dst correction if option is set |
|
| 1236 | 1236 | * @return integer|string|Zend_Date new timestamp or Zend_Date depending on calculation |
| 1237 | 1237 | */ |
| 1238 | 1238 | private function _assign($calc, $date, $comp = 0, $dst = false) |
@@ -2677,7 +2677,7 @@ discard block |
||
| 2677 | 2677 | * For example: |
| 2678 | 2678 | * 15.May.2000 <-> 15.June.2000 Equals only for Day or Year... all other will return false |
| 2679 | 2679 | * |
| 2680 | - * @param string|integer|array|Zend_Date $date Date or datepart to equal with |
|
| 2680 | + * @param Zend_Date $date Date or datepart to equal with |
|
| 2681 | 2681 | * @param string $part OPTIONAL Part of the date to compare, if null the timestamp is used |
| 2682 | 2682 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
| 2683 | 2683 | * @return boolean |
@@ -2699,7 +2699,7 @@ discard block |
||
| 2699 | 2699 | * For example: |
| 2700 | 2700 | * 15.May.2000 <-> 13.June.1999 will return true for day, year and date, but not for month |
| 2701 | 2701 | * |
| 2702 | - * @param string|integer|array|Zend_Date $date Date or datepart to compare with |
|
| 2702 | + * @param Zend_Date $date Date or datepart to compare with |
|
| 2703 | 2703 | * @param string $part OPTIONAL Part of the date to compare, if null the timestamp is used |
| 2704 | 2704 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
| 2705 | 2705 | * @return boolean |
@@ -2722,7 +2722,7 @@ discard block |
||
| 2722 | 2722 | * 15.May.2000 <-> 13.June.1999 will return true for month but false for day, year and date |
| 2723 | 2723 | * Returns if the given date is later |
| 2724 | 2724 | * |
| 2725 | - * @param string|integer|array|Zend_Date $date Date or datepart to compare with |
|
| 2725 | + * @param Zend_Date $date Date or datepart to compare with |
|
| 2726 | 2726 | * @param string $part OPTIONAL Part of the date to compare, if null the timestamp is used |
| 2727 | 2727 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
| 2728 | 2728 | * @return boolean |
@@ -2835,7 +2835,7 @@ discard block |
||
| 2835 | 2835 | * For example: dd.MMMM.yyTHH:mm' and 'ss sec'-> 10.May.07T25:11 and 44 sec => 1h11min44sec + 1 day |
| 2836 | 2836 | * Returned is the new date object and the existing date is left as it was before |
| 2837 | 2837 | * |
| 2838 | - * @param string|integer|array|Zend_Date $time Time to set |
|
| 2838 | + * @param string $time Time to set |
|
| 2839 | 2839 | * @param string $format OPTIONAL Timeformat for parsing input |
| 2840 | 2840 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
| 2841 | 2841 | * @return Zend_Date Provides fluid interface |
@@ -2997,7 +2997,7 @@ discard block |
||
| 2997 | 2997 | * For example: MMMM.yy HH:mm-> May.07 22:11 => 01.May.07 00:00 |
| 2998 | 2998 | * Returned is the new date object and the existing time is left as it was before |
| 2999 | 2999 | * |
| 3000 | - * @param string|integer|array|Zend_Date $date Date to set |
|
| 3000 | + * @param string $date Date to set |
|
| 3001 | 3001 | * @param string $format OPTIONAL Date format for parsing |
| 3002 | 3002 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
| 3003 | 3003 | * @return Zend_Date Provides fluid interface |
@@ -3364,7 +3364,7 @@ discard block |
||
| 3364 | 3364 | /** |
| 3365 | 3365 | * Check a given year for leap year. |
| 3366 | 3366 | * |
| 3367 | - * @param integer|array|Zend_Date $year Year to check |
|
| 3367 | + * @param Zend_Date $year Year to check |
|
| 3368 | 3368 | * @return boolean |
| 3369 | 3369 | */ |
| 3370 | 3370 | public static function checkLeapYear($year) |
@@ -3460,7 +3460,6 @@ discard block |
||
| 3460 | 3460 | * |
| 3461 | 3461 | * @param string $calc Calculation to make |
| 3462 | 3462 | * @param string|integer|array|Zend_Date $date Date or Part to calculate |
| 3463 | - * @param string $part Datepart for Calculation |
|
| 3464 | 3463 | * @param string|Zend_Locale $locale Locale for parsing input |
| 3465 | 3464 | * @return integer|string new date |
| 3466 | 3465 | * @throws Zend_Date_Exception |
@@ -3501,6 +3500,8 @@ discard block |
||
| 3501 | 3500 | * @param string $calc Calculation to make |
| 3502 | 3501 | * @param string|integer|Zend_Date $value Datevalue to calculate with, if null the actual value is taken |
| 3503 | 3502 | * @param string|Zend_Locale $locale Locale for parsing input |
| 3503 | + * @param string $type |
|
| 3504 | + * @param string $parameter |
|
| 3504 | 3505 | * @return integer|Zend_Date new date |
| 3505 | 3506 | * @throws Zend_Date_Exception |
| 3506 | 3507 | */ |
@@ -3558,7 +3559,6 @@ discard block |
||
| 3558 | 3559 | * use set() instead. |
| 3559 | 3560 | * Returned is the new date object |
| 3560 | 3561 | * |
| 3561 | - * @param string|integer|array|Zend_Date $date Year to set |
|
| 3562 | 3562 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
| 3563 | 3563 | * @return Zend_Date Provides fluid interface |
| 3564 | 3564 | * @throws Zend_Date_Exception |
@@ -3577,7 +3577,6 @@ discard block |
||
| 3577 | 3577 | * use add() instead. |
| 3578 | 3578 | * Returned is the new date object |
| 3579 | 3579 | * |
| 3580 | - * @param string|integer|array|Zend_Date $date Year to add |
|
| 3581 | 3580 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
| 3582 | 3581 | * @return Zend_Date Provides fluid interface |
| 3583 | 3582 | * @throws Zend_Date_Exception |
@@ -3596,7 +3595,6 @@ discard block |
||
| 3596 | 3595 | * use sub() instead. |
| 3597 | 3596 | * Returned is the new date object |
| 3598 | 3597 | * |
| 3599 | - * @param string|integer|array|Zend_Date $date Year to sub |
|
| 3600 | 3598 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
| 3601 | 3599 | * @return Zend_Date Provides fluid interface |
| 3602 | 3600 | * @throws Zend_Date_Exception |
@@ -3864,7 +3862,6 @@ discard block |
||
| 3864 | 3862 | * Returned is the new date object |
| 3865 | 3863 | * Example: setDay('Montag', 'de_AT'); will set the monday of this week as day. |
| 3866 | 3864 | * |
| 3867 | - * @param string|integer|array|Zend_Date $month Day to set |
|
| 3868 | 3865 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
| 3869 | 3866 | * @return Zend_Date Provides fluid interface |
| 3870 | 3867 | * @throws Zend_Date_Exception |
@@ -3882,7 +3879,6 @@ discard block |
||
| 3882 | 3879 | * If a localized dayname is given it will be parsed with the default locale or the optional |
| 3883 | 3880 | * set locale. |
| 3884 | 3881 | * |
| 3885 | - * @param string|integer|array|Zend_Date $month Day to add |
|
| 3886 | 3882 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
| 3887 | 3883 | * @return Zend_Date Provides fluid interface |
| 3888 | 3884 | * @throws Zend_Date_Exception |
@@ -3900,7 +3896,6 @@ discard block |
||
| 3900 | 3896 | * If a localized dayname is given it will be parsed with the default locale or the optional |
| 3901 | 3897 | * set locale. |
| 3902 | 3898 | * |
| 3903 | - * @param string|integer|array|Zend_Date $month Day to sub |
|
| 3904 | 3899 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
| 3905 | 3900 | * @return Zend_Date Provides fluid interface |
| 3906 | 3901 | * @throws Zend_Date_Exception |
@@ -4012,7 +4007,6 @@ discard block |
||
| 4012 | 4007 | * Returned is the new date object. |
| 4013 | 4008 | * Example: setWeekday(3); will set the wednesday of this week as day. |
| 4014 | 4009 | * |
| 4015 | - * @param string|integer|array|Zend_Date $month Weekday to set |
|
| 4016 | 4010 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
| 4017 | 4011 | * @return Zend_Date Provides fluid interface |
| 4018 | 4012 | * @throws Zend_Date_Exception |
@@ -4032,7 +4026,6 @@ discard block |
||
| 4032 | 4026 | * Example: addWeekday(3); will add the difference of days from the begining of the month until |
| 4033 | 4027 | * wednesday. |
| 4034 | 4028 | * |
| 4035 | - * @param string|integer|array|Zend_Date $month Weekday to add |
|
| 4036 | 4029 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
| 4037 | 4030 | * @return Zend_Date Provides fluid interface |
| 4038 | 4031 | * @throws Zend_Date_Exception |
@@ -4052,7 +4045,6 @@ discard block |
||
| 4052 | 4045 | * Example: subWeekday(3); will subtract the difference of days from the begining of the month until |
| 4053 | 4046 | * wednesday. |
| 4054 | 4047 | * |
| 4055 | - * @param string|integer|array|Zend_Date $month Weekday to sub |
|
| 4056 | 4048 | * @param string|Zend_Locale $locale OPTIONAL Locale for parsing input |
| 4057 | 4049 | * @return Zend_Date Provides fluid interface |
| 4058 | 4050 | * @throws Zend_Date_Exception |
@@ -4373,7 +4365,7 @@ discard block |
||
| 4373 | 4365 | * Returned is the new date object |
| 4374 | 4366 | * Example: 04.May.1993 13:07:25 -> addSecond(65); -> 04.May.1993 13:08:30 |
| 4375 | 4367 | * |
| 4376 | - * @param string|integer|array|Zend_Date $second Second to add |
|
| 4368 | + * @param integer $second Second to add |
|
| 4377 | 4369 | * @param string|Zend_Locale $locale (Optional) Locale for parsing input |
| 4378 | 4370 | * @return Zend_Date Provides fluid interface |
| 4379 | 4371 | * @throws Zend_Date_Exception |
@@ -4390,7 +4382,7 @@ discard block |
||
| 4390 | 4382 | * Returned is the new date object |
| 4391 | 4383 | * Example: 04.May.1993 13:07:25 -> subSecond(10); -> 04.May.1993 13:07:15 |
| 4392 | 4384 | * |
| 4393 | - * @param string|integer|array|Zend_Date $second Second to sub |
|
| 4385 | + * @param integer $second Second to sub |
|
| 4394 | 4386 | * @param string|Zend_Locale $locale (Optional) Locale for parsing input |
| 4395 | 4387 | * @return Zend_Date Provides fluid interface |
| 4396 | 4388 | * @throws Zend_Date_Exception |
@@ -4456,7 +4448,7 @@ discard block |
||
| 4456 | 4448 | /** |
| 4457 | 4449 | * Returns the milliseconds of the date object |
| 4458 | 4450 | * |
| 4459 | - * @return string |
|
| 4451 | + * @return integer |
|
| 4460 | 4452 | */ |
| 4461 | 4453 | public function getMilliSecond() |
| 4462 | 4454 | { |