@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | |
110 | 110 | /** |
111 | 111 | * @param string a key identifying a value to be cached |
112 | - * @return sring a key generated from the provided key which ensures the uniqueness across applications |
|
112 | + * @return string a key generated from the provided key which ensures the uniqueness across applications |
|
113 | 113 | */ |
114 | 114 | protected function generateUniqueKey($key) |
115 | 115 | { |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | * @param mixed the value to be cached |
144 | 144 | * @param integer the number of seconds in which the cached value will expire. 0 means never expire. |
145 | 145 | * @param ICacheDependency dependency of the cached item. If the dependency changes, the item is labeled invalid. |
146 | - * @return boolean true if the value is successfully stored into cache, false otherwise |
|
146 | + * @return null|boolean true if the value is successfully stored into cache, false otherwise |
|
147 | 147 | */ |
148 | 148 | public function set($id,$value,$expire=0,$dependency=null) |
149 | 149 | { |
@@ -201,6 +201,7 @@ discard block |
||
201 | 201 | * in {@link get()} already. So only the implementation of data retrieval |
202 | 202 | * is needed. |
203 | 203 | * @param string a unique key identifying the cached value |
204 | + * @param string $key |
|
204 | 205 | * @return string the value stored in cache, false if the value is not in the cache or expired. |
205 | 206 | */ |
206 | 207 | abstract protected function getValue($key); |
@@ -215,6 +216,8 @@ discard block |
||
215 | 216 | * @param string the key identifying the value to be cached |
216 | 217 | * @param string the value to be cached |
217 | 218 | * @param integer the number of seconds in which the cached value will expire. 0 means never expire. |
219 | + * @param string $key |
|
220 | + * @param integer $expire |
|
218 | 221 | * @return boolean true if the value is successfully stored into cache, false otherwise |
219 | 222 | */ |
220 | 223 | abstract protected function setValue($key,$value,$expire); |
@@ -229,6 +232,8 @@ discard block |
||
229 | 232 | * @param string the key identifying the value to be cached |
230 | 233 | * @param string the value to be cached |
231 | 234 | * @param integer the number of seconds in which the cached value will expire. 0 means never expire. |
235 | + * @param string $key |
|
236 | + * @param integer $expire |
|
232 | 237 | * @return boolean true if the value is successfully stored into cache, false otherwise |
233 | 238 | */ |
234 | 239 | abstract protected function addValue($key,$value,$expire); |
@@ -237,6 +242,7 @@ discard block |
||
237 | 242 | * Deletes a value with the specified key from cache |
238 | 243 | * This method should be implemented by child classes to delete the data from actual cache storage. |
239 | 244 | * @param string the key of the value to be deleted |
245 | + * @param string $key |
|
240 | 246 | * @return boolean if no error happens during deletion |
241 | 247 | */ |
242 | 248 | abstract protected function deleteValue($key); |
@@ -280,7 +286,7 @@ discard block |
||
280 | 286 | * Deletes the value with the specified key from cache |
281 | 287 | * This method is required by the interface \ArrayAccess. |
282 | 288 | * @param string the key of the value to be deleted |
283 | - * @return boolean if no error happens during deletion |
|
289 | + * @return boolean|null if no error happens during deletion |
|
284 | 290 | */ |
285 | 291 | public function offsetUnset($id) |
286 | 292 | { |
@@ -123,6 +123,7 @@ discard block |
||
123 | 123 | * By default, it always returns true, meaning the file should be checked. |
124 | 124 | * You may override this method to check only certain files. |
125 | 125 | * @param string the name of the file that may be checked for dependency. |
126 | + * @param string $fileName |
|
126 | 127 | * @return boolean whether this file should be checked. |
127 | 128 | */ |
128 | 129 | protected function validateFile($fileName) |
@@ -136,6 +137,7 @@ discard block |
||
136 | 137 | * By default, it always returns true, meaning the subdirectory should be checked. |
137 | 138 | * You may override this method to check only certain subdirectories. |
138 | 139 | * @param string the name of the subdirectory that may be checked for dependency. |
140 | + * @param string $directory |
|
139 | 141 | * @return boolean whether this subdirectory should be checked. |
140 | 142 | */ |
141 | 143 | protected function validateDirectory($directory) |
@@ -149,6 +151,7 @@ discard block |
||
149 | 151 | * {@link setRecursiveCheck RecursiveCheck} is set true. |
150 | 152 | * @param string the directory name |
151 | 153 | * @param int level of the recursion |
154 | + * @param string $directory |
|
152 | 155 | * @return array list of file modification time indexed by the file path |
153 | 156 | */ |
154 | 157 | protected function generateTimestamps($directory,$level=0) |
@@ -48,7 +48,7 @@ |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
51 | - * @return Iterator iterator |
|
51 | + * @return TDummyDataSourceIterator iterator |
|
52 | 52 | */ |
53 | 53 | public function getIterator() |
54 | 54 | { |
@@ -81,6 +81,7 @@ discard block |
||
81 | 81 | |
82 | 82 | /** |
83 | 83 | * @param boolean whether this list is read-only or not |
84 | + * @param boolean $value |
|
84 | 85 | */ |
85 | 86 | protected function setReadOnly($value) |
86 | 87 | { |
@@ -90,7 +91,7 @@ discard block |
||
90 | 91 | /** |
91 | 92 | * Returns an iterator for traversing the items in the list. |
92 | 93 | * This method is required by the interface \IteratorAggregate. |
93 | - * @return Iterator an iterator for traversing the items in the list. |
|
94 | + * @return \ArrayIterator an iterator for traversing the items in the list. |
|
94 | 95 | */ |
95 | 96 | public function getIterator() |
96 | 97 | { |
@@ -283,7 +284,7 @@ discard block |
||
283 | 284 | * Finds the base item. If found, the item is inserted after it. |
284 | 285 | * @param mixed the base item which comes before the second parameter when added to the list |
285 | 286 | * @param mixed the item |
286 | - * @return int the index where the item is inserted |
|
287 | + * @return double the index where the item is inserted |
|
287 | 288 | * @throws TInvalidDataValueException if the base item is not within this list |
288 | 289 | * @throws TInvalidOperationException if the list is read-only |
289 | 290 | * @since 3.2a |
@@ -334,6 +335,7 @@ discard block |
||
334 | 335 | * Merges iterable data into the map. |
335 | 336 | * New data will be appended to the end of the existing data. |
336 | 337 | * @param mixed the data to be merged with, must be an array or object implementing Traversable |
338 | + * @param \Prado\Web\UI\WebControls\TDataGridColumnCollection|null $data |
|
337 | 339 | * @throws TInvalidDataTypeException If data is neither an array nor an iterator. |
338 | 340 | */ |
339 | 341 | public function mergeWith($data) |
@@ -86,6 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | /** |
88 | 88 | * @param boolean whether this list is read-only or not |
89 | + * @param boolean $value |
|
89 | 90 | */ |
90 | 91 | protected function setReadOnly($value) |
91 | 92 | { |
@@ -95,7 +96,7 @@ discard block |
||
95 | 96 | /** |
96 | 97 | * Returns an iterator for traversing the items in the list. |
97 | 98 | * This method is required by the interface \IteratorAggregate. |
98 | - * @return Iterator an iterator for traversing the items in the list. |
|
99 | + * @return \ArrayIterator an iterator for traversing the items in the list. |
|
99 | 100 | */ |
100 | 101 | public function getIterator() |
101 | 102 | { |
@@ -68,6 +68,7 @@ discard block |
||
68 | 68 | |
69 | 69 | /** |
70 | 70 | * @param mixed original data source |
71 | + * @param \Traversable $value |
|
71 | 72 | */ |
72 | 73 | public function setDataSource($value) |
73 | 74 | { |
@@ -93,6 +94,7 @@ discard block |
||
93 | 94 | |
94 | 95 | /** |
95 | 96 | * @param integer number of items in each page |
97 | + * @param integer $value |
|
96 | 98 | */ |
97 | 99 | public function setPageSize($value) |
98 | 100 | { |
@@ -112,6 +114,7 @@ discard block |
||
112 | 114 | |
113 | 115 | /** |
114 | 116 | * @param integer current page index |
117 | + * @param integer $value |
|
115 | 118 | */ |
116 | 119 | public function setCurrentPageIndex($value) |
117 | 120 | { |
@@ -130,6 +133,7 @@ discard block |
||
130 | 133 | |
131 | 134 | /** |
132 | 135 | * @param boolean whether to allow paging |
136 | + * @param boolean $value |
|
133 | 137 | */ |
134 | 138 | public function setAllowPaging($value) |
135 | 139 | { |
@@ -146,6 +150,7 @@ discard block |
||
146 | 150 | |
147 | 151 | /** |
148 | 152 | * @param boolean whether to allow custom paging |
153 | + * @param boolean $value |
|
149 | 154 | */ |
150 | 155 | public function setAllowCustomPaging($value) |
151 | 156 | { |
@@ -162,6 +167,7 @@ discard block |
||
162 | 167 | |
163 | 168 | /** |
164 | 169 | * @param integer user-assigned number of items in data source |
170 | + * @param integer $value |
|
165 | 171 | */ |
166 | 172 | public function setVirtualItemCount($value) |
167 | 173 | { |
@@ -96,6 +96,7 @@ discard block |
||
96 | 96 | |
97 | 97 | /** |
98 | 98 | * @param boolean whether to allow custom paging |
99 | + * @param boolean $value |
|
99 | 100 | */ |
100 | 101 | public function setCustomPaging($value) |
101 | 102 | { |
@@ -143,6 +144,7 @@ discard block |
||
143 | 144 | * Raises <b>OnPageIndexChanged</b> event. |
144 | 145 | * This event is raised each time when the list changes to a different page. |
145 | 146 | * @param TPagedListPageChangedEventParameter event parameter |
147 | + * @param TPagedListPageChangedEventParameter|null $param |
|
146 | 148 | */ |
147 | 149 | public function onPageIndexChanged($param) |
148 | 150 | { |
@@ -155,6 +157,7 @@ discard block |
||
155 | 157 | * and needs the new page of data. This event can only be raised when |
156 | 158 | * {@link setCustomPaging CustomPaging} is true. |
157 | 159 | * @param TPagedListFetchDataEventParameter event parameter |
160 | + * @param TPagedListFetchDataEventParameter $param |
|
158 | 161 | */ |
159 | 162 | public function onFetchData($param) |
160 | 163 | { |
@@ -28,6 +28,7 @@ |
||
28 | 28 | /** |
29 | 29 | * Constructor. |
30 | 30 | * @param integer old page index |
31 | + * @param integer $oldPage |
|
31 | 32 | */ |
32 | 33 | public function __construct($oldPage) |
33 | 34 | { |
@@ -34,6 +34,8 @@ |
||
34 | 34 | /** |
35 | 35 | * Constructor. |
36 | 36 | * @param array the data to be iterated through |
37 | + * @param integer $startIndex |
|
38 | + * @param integer $count |
|
37 | 39 | */ |
38 | 40 | public function __construct(TMap $map,$startIndex,$count) |
39 | 41 | { |