@@ -249,6 +249,9 @@ discard block |
||
| 249 | 249 | return $this; |
| 250 | 250 | } |
| 251 | 251 | |
| 252 | + /** |
|
| 253 | + * @param integer $index |
|
| 254 | + */ |
|
| 252 | 255 | public static function setIndex($index) { |
| 253 | 256 | self::$index=$index; |
| 254 | 257 | } |
@@ -307,7 +310,7 @@ discard block |
||
| 307 | 310 | * The $callback function can take the following arguments : $field=>the compiled field, $instance : the active instance of the object, $index: the field position |
| 308 | 311 | * @param int $index postion of the compiled field |
| 309 | 312 | * @param callable $callback function called after the field compilation |
| 310 | - * @return \Ajax\semantic\widgets\datatable\InstanceViewer |
|
| 313 | + * @return InstanceViewer |
|
| 311 | 314 | */ |
| 312 | 315 | public function afterCompile($index,$callback){ |
| 313 | 316 | $this->afterCompile[$index]=$callback; |