@@ -244,6 +244,9 @@ discard block |
||
| 244 | 244 | return $this; |
| 245 | 245 | } |
| 246 | 246 | |
| 247 | + /** |
|
| 248 | + * @param callable $callback |
|
| 249 | + */ |
|
| 247 | 250 | public function setValueFunction($index,$callback){ |
| 248 | 251 | $this->values[$index]=$callback; |
| 249 | 252 | return $this; |
@@ -254,6 +257,9 @@ discard block |
||
| 254 | 257 | return $this; |
| 255 | 258 | } |
| 256 | 259 | |
| 260 | + /** |
|
| 261 | + * @param integer $index |
|
| 262 | + */ |
|
| 257 | 263 | public static function setIndex($index) { |
| 258 | 264 | self::$index=$index; |
| 259 | 265 | } |
@@ -313,7 +319,7 @@ discard block |
||
| 313 | 319 | * The $callback function can take the following arguments : $field=>the compiled field, $instance : the active instance of the object, $index: the field position |
| 314 | 320 | * @param int $index postion of the compiled field |
| 315 | 321 | * @param callable $callback function called after the field compilation |
| 316 | - * @return \Ajax\semantic\widgets\datatable\InstanceViewer |
|
| 322 | + * @return InstanceViewer |
|
| 317 | 323 | */ |
| 318 | 324 | public function afterCompile($index,$callback){ |
| 319 | 325 | $this->afterCompile[$index]=$callback; |