@@ -83,6 +83,9 @@ discard block |
||
83 | 83 | |
84 | 84 | } |
85 | 85 | |
86 | + /** |
|
87 | + * @param integer $index |
|
88 | + */ |
|
86 | 89 | protected function _getDefaultValue($name,$value,$index){ |
87 | 90 | $func=$this->defaultValueFunction; |
88 | 91 | return $func($name,$value,$index,$this->instance); |
@@ -244,6 +247,9 @@ discard block |
||
244 | 247 | return $this; |
245 | 248 | } |
246 | 249 | |
250 | + /** |
|
251 | + * @param callable $callback |
|
252 | + */ |
|
247 | 253 | public function setValueFunction($index,$callback){ |
248 | 254 | $this->values[$index]=$callback; |
249 | 255 | return $this; |
@@ -254,6 +260,9 @@ discard block |
||
254 | 260 | return $this; |
255 | 261 | } |
256 | 262 | |
263 | + /** |
|
264 | + * @param integer $index |
|
265 | + */ |
|
257 | 266 | public static function setIndex($index) { |
258 | 267 | self::$index=$index; |
259 | 268 | } |
@@ -313,7 +322,7 @@ discard block |
||
313 | 322 | * The $callback function can take the following arguments : $field=>the compiled field, $instance : the active instance of the object, $index: the field position |
314 | 323 | * @param int $index postion of the compiled field |
315 | 324 | * @param callable $callback function called after the field compilation |
316 | - * @return \Ajax\semantic\widgets\datatable\InstanceViewer |
|
325 | + * @return InstanceViewer |
|
317 | 326 | */ |
318 | 327 | public function afterCompile($index,$callback){ |
319 | 328 | $this->afterCompile[$index]=$callback; |