@@ -105,6 +105,9 @@ discard block |
||
105 | 105 | return $matches; |
106 | 106 | } |
107 | 107 | |
108 | + /** |
|
109 | + * @param string $string |
|
110 | + */ |
|
108 | 111 | function _unhtmlentities($string) { |
109 | 112 | $string = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $string); |
110 | 113 | $string = preg_replace('~&#([0-9]+);~e', 'chr(\\1)', $string); |
@@ -118,6 +121,10 @@ discard block |
||
118 | 121 | |
119 | 122 | // Patch in multibyte support |
120 | 123 | if (!function_exists('mb_substr')) { |
124 | + |
|
125 | + /** |
|
126 | + * @param string $str |
|
127 | + */ |
|
121 | 128 | function mb_substr($str, $start, $len = '', $encoding="UTF-8"){ |
122 | 129 | $limit = strlen($str); |
123 | 130 |
@@ -45,6 +45,7 @@ |
||
45 | 45 | |
46 | 46 | /** |
47 | 47 | * Opens a link for pspell. |
48 | + * @return string |
|
48 | 49 | */ |
49 | 50 | function &_getPLink($lang) { |
50 | 51 | // Check for native PSpell support |
@@ -160,7 +160,6 @@ discard block |
||
160 | 160 | /** |
161 | 161 | * Construct a writer object based on a configuration array |
162 | 162 | * |
163 | - * @param array $spec config array with writer spec |
|
164 | 163 | * @return Zend_Log_Writer_Abstract |
165 | 164 | * @throws Zend_Log_Exception |
166 | 165 | */ |
@@ -457,7 +456,7 @@ discard block |
||
457 | 456 | * Before a message will be received by any of the writers, it |
458 | 457 | * must be accepted by all filters added with this method. |
459 | 458 | * |
460 | - * @param int|Zend_Config|array|Zend_Log_Filter_Interface $filter |
|
459 | + * @param Zend_Log_Filter_Priority $filter |
|
461 | 460 | * @return Zend_Log |
462 | 461 | * @throws Zend_Log_Exception |
463 | 462 | */ |
@@ -48,7 +48,7 @@ |
||
48 | 48 | * |
49 | 49 | * @param array|string|resource $streamOrUrl Stream or URL to open as a stream |
50 | 50 | * @param string|null $mode Mode, only applicable if a URL is given |
51 | - * @return void |
|
51 | + * @return null|Zend_Log_Writer_Abstract |
|
52 | 52 | * @throws Zend_Log_Exception |
53 | 53 | */ |
54 | 54 | public function __construct($streamOrUrl, $mode = null) |
@@ -5,10 +5,16 @@ |
||
5 | 5 | return parent::viewfile_getLocalFileByID($id); |
6 | 6 | } |
7 | 7 | |
8 | + /** |
|
9 | + * @param string $fileUrl |
|
10 | + */ |
|
8 | 11 | public function viewfile_getLocalFileByURL($fileUrl) { |
9 | 12 | return parent::viewfile_getLocalFileByURL($fileUrl); |
10 | 13 | } |
11 | 14 | |
15 | + /** |
|
16 | + * @param string $fileUrl |
|
17 | + */ |
|
12 | 18 | public function viewfile_getRemoteFileByURL($fileUrl) { |
13 | 19 | return parent::viewfile_getRemoteFileByURL($fileUrl); |
14 | 20 | } |
@@ -732,6 +732,9 @@ discard block |
||
732 | 732 | return $result; |
733 | 733 | } |
734 | 734 | |
735 | + /** |
|
736 | + * @param string $mode |
|
737 | + */ |
|
735 | 738 | protected function _get($dir, $mode, $tags = array()) |
736 | 739 | { |
737 | 740 | if (!is_dir($dir)) { |
@@ -819,6 +822,7 @@ discard block |
||
819 | 822 | /** |
820 | 823 | * Compute & return the expire time |
821 | 824 | * |
825 | + * @param integer $lifetime |
|
822 | 826 | * @return int expire time (unix timestamp) |
823 | 827 | */ |
824 | 828 | protected function _expireTime($lifetime) |
@@ -108,7 +108,7 @@ |
||
108 | 108 | * Return a date and time formatted as per a CMS user's settings. |
109 | 109 | * |
110 | 110 | * @param Member $member |
111 | - * @return boolean | string A time and date pair formatted as per user-defined settings. |
|
111 | + * @return false|string | string A time and date pair formatted as per user-defined settings. |
|
112 | 112 | */ |
113 | 113 | public function FormatFromSettings($member = null) { |
114 | 114 | require_once 'Zend/Date.php'; |
@@ -32,6 +32,10 @@ discard block |
||
32 | 32 | */ |
33 | 33 | protected $fieldCurrency = null; |
34 | 34 | |
35 | + /** |
|
36 | + * @param string $name |
|
37 | + * @param string $title |
|
38 | + */ |
|
35 | 39 | public function __construct($name, $title = null, $value = "") { |
36 | 40 | // naming with underscores to prevent values from actually being saved somewhere |
37 | 41 | $this->fieldAmount = new NumericField("{$name}[Amount]", _t('MoneyField.FIELDLABELAMOUNT', 'Amount')); |
@@ -135,6 +139,7 @@ discard block |
||
135 | 139 | /** |
136 | 140 | * @todo Implement removal of readonly state with $bool=false |
137 | 141 | * @todo Set readonly state whenever field is recreated, e.g. in setAllowedCurrencies() |
142 | + * @param boolean $bool |
|
138 | 143 | */ |
139 | 144 | public function setReadonly($bool) { |
140 | 145 | parent::setReadonly($bool); |
@@ -619,6 +619,11 @@ |
||
619 | 619 | 'ObjectTest_Extending_Extension' |
620 | 620 | ); |
621 | 621 | |
622 | + /** |
|
623 | + * @param integer $first |
|
624 | + * @param integer $second |
|
625 | + * @param integer $third |
|
626 | + */ |
|
622 | 627 | public function getResults(&$first, &$second, &$third) { |
623 | 628 | // Before extending should be invoked second |
624 | 629 | $this->beforeExtending('updateResult', function(&$first, &$second, &$third) { |