@@ -96,6 +96,7 @@ discard block |
||
96 | 96 | |
97 | 97 | /** |
98 | 98 | * @param boolean true to perform strict comparison (i.e. strictly less than max and/or strictly greater than min). |
99 | + * @param boolean $value |
|
99 | 100 | */ |
100 | 101 | public function setStrictComparison($value) |
101 | 102 | { |
@@ -191,6 +192,7 @@ discard block |
||
191 | 192 | /** |
192 | 193 | * Determine if the value is within the integer range. |
193 | 194 | * @param string value to validate true |
195 | + * @param string $value |
|
194 | 196 | * @return boolean true if within integer range. |
195 | 197 | */ |
196 | 198 | protected function isValidInteger($value) |
@@ -220,6 +222,7 @@ discard block |
||
220 | 222 | /** |
221 | 223 | * Determine if the value is within the specified float range. |
222 | 224 | * @param string value to validate |
225 | + * @param string $value |
|
223 | 226 | * @return boolean true if within range. |
224 | 227 | */ |
225 | 228 | protected function isValidFloat($value) |
@@ -240,6 +243,7 @@ discard block |
||
240 | 243 | * Determine if the date is within the specified range. |
241 | 244 | * Uses pradoParseDate and strtotime to get the date from string. |
242 | 245 | * @param string date as string to validate |
246 | + * @param string $value |
|
243 | 247 | * @return boolean true if within range. |
244 | 248 | */ |
245 | 249 | protected function isValidDate($value) |
@@ -275,6 +279,7 @@ discard block |
||
275 | 279 | * Compare the string with a minimum and a maxiumum value. |
276 | 280 | * Uses strcmp for comparision. |
277 | 281 | * @param string value to compare with. |
282 | + * @param string $value |
|
278 | 283 | * @return boolean true if the string is within range. |
279 | 284 | */ |
280 | 285 | protected function isValidString($value) |
@@ -292,6 +297,7 @@ discard block |
||
292 | 297 | |
293 | 298 | /** |
294 | 299 | * @param string string for comparision |
300 | + * @param string $value |
|
295 | 301 | * @return boolean true if min and max string length are satisfied. |
296 | 302 | */ |
297 | 303 | protected function isValidStringLength($value) |
@@ -132,6 +132,7 @@ |
||
132 | 132 | |
133 | 133 | /** |
134 | 134 | * @param float rating value |
135 | + * @param double $rating |
|
135 | 136 | * @return int rating as integer |
136 | 137 | */ |
137 | 138 | protected function getRatingIndex($rating) |
@@ -144,6 +144,7 @@ discard block |
||
144 | 144 | |
145 | 145 | /** |
146 | 146 | * @param string table caption |
147 | + * @param string $value |
|
147 | 148 | */ |
148 | 149 | public function setCaption($value) |
149 | 150 | { |
@@ -160,6 +161,7 @@ discard block |
||
160 | 161 | |
161 | 162 | /** |
162 | 163 | * @param TTableCaptionAlign table caption alignment. |
164 | + * @param TTableCaptionAlign $value |
|
163 | 165 | */ |
164 | 166 | public function setCaptionAlign($value) |
165 | 167 | { |
@@ -118,7 +118,7 @@ |
||
118 | 118 | } |
119 | 119 | |
120 | 120 | /** |
121 | - * @return ITemplate the item template |
|
121 | + * @return string the item template |
|
122 | 122 | */ |
123 | 123 | public function getItemTemplate() |
124 | 124 | { |
@@ -113,6 +113,7 @@ |
||
113 | 113 | |
114 | 114 | /** |
115 | 115 | * @param string button caption |
116 | + * @param string $value |
|
116 | 117 | */ |
117 | 118 | public function setButtonText($value) |
118 | 119 | { |
@@ -207,6 +207,10 @@ |
||
207 | 207 | return $code; |
208 | 208 | } |
209 | 209 | |
210 | + /** |
|
211 | + * @param string $classname |
|
212 | + * @param string $toString |
|
213 | + */ |
|
210 | 214 | protected function generateClass($properties, $tablename, $classname, $toString) |
211 | 215 | { |
212 | 216 | $props = implode("\n", $properties); |
@@ -44,6 +44,10 @@ discard block |
||
44 | 44 | |
45 | 45 | //--------------------------------------------------------------------- |
46 | 46 | // <editor-fold defaultstate="collapsed" desc="Page Generation"> |
47 | + |
|
48 | + /** |
|
49 | + * @param integer $viewType |
|
50 | + */ |
|
47 | 51 | public function generate($tableName, $viewType) |
48 | 52 | { |
49 | 53 | switch ($viewType) |
@@ -141,6 +145,10 @@ discard block |
||
141 | 145 | // </editor-fold> |
142 | 146 | //--------------------------------------------------------------------- |
143 | 147 | // <editor-fold defaultstate="collapsed" desc="Code Behind Generation"> |
148 | + |
|
149 | + /** |
|
150 | + * @param string $classname |
|
151 | + */ |
|
144 | 152 | private function generateClass($classname) |
145 | 153 | { |
146 | 154 | $date = date('Y-m-d h:i:s'); |
@@ -93,6 +93,7 @@ discard block |
||
93 | 93 | |
94 | 94 | /** |
95 | 95 | * @param boolean whether the keys are case-sensitive. |
96 | + * @param boolean $value |
|
96 | 97 | */ |
97 | 98 | public function setCaseSensitive($value) |
98 | 99 | { |
@@ -126,6 +127,7 @@ discard block |
||
126 | 127 | * Removes an item from the map by its key. |
127 | 128 | * This overrides the parent implementation by converting the key to lower case first if CaseSensitive is false. |
128 | 129 | * @param mixed the key of the item to be removed |
130 | + * @param string $key |
|
129 | 131 | * @return mixed the removed value, null if no such key exists. |
130 | 132 | */ |
131 | 133 | public function remove($key) |
@@ -87,6 +87,7 @@ discard block |
||
87 | 87 | * Initialize a new DateFormat. |
88 | 88 | * @param mixed either, null, a CultureInfo instance, |
89 | 89 | * a DateTimeFormatInfo instance, or a locale. |
90 | + * @param string $formatInfo |
|
90 | 91 | * @return DateFormat instance |
91 | 92 | */ |
92 | 93 | function __construct($formatInfo=null) |
@@ -106,6 +107,7 @@ discard block |
||
106 | 107 | /** |
107 | 108 | * Format a date according to the pattern. |
108 | 109 | * @param mixed the time as integer or string in strtotime format. |
110 | + * @param string $time |
|
109 | 111 | * @return string formatted date time. |
110 | 112 | */ |
111 | 113 | public function format($time, $pattern='F', $charset='UTF-8') |
@@ -179,6 +181,7 @@ discard block |
||
179 | 181 | * DateTimeFormatInfo::formatDateTime |
180 | 182 | * See the tutorial documentation for futher details on the patterns. |
181 | 183 | * @param mixed a pattern. |
184 | + * @param string $pattern |
|
182 | 185 | * @return string a pattern. |
183 | 186 | * @see DateTimeFormatInfo::formatDateTime() |
184 | 187 | */ |
@@ -269,6 +272,7 @@ discard block |
||
269 | 272 | * Any substrings, starting and ending with a single quote (') |
270 | 273 | * will be treated as a single token. |
271 | 274 | * @param string pattern. |
275 | + * @param string $pattern |
|
272 | 276 | * @return array string tokens in an array. |
273 | 277 | */ |
274 | 278 | protected function getTokens($pattern) |