Initial commit
This commit is contained in:
commit
65e0da7e11
1397 changed files with 596542 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
require __DIR__ . DS . 'options.php';
|
||||
|
||||
class IndexFieldController extends Kirby\Panel\Controllers\Field {
|
||||
|
||||
// get entries for the current table
|
||||
public function list_entries () {
|
||||
$field = $this->field();
|
||||
$data = Kirby\Panel\Form\IndexFieldOptions::build($field);
|
||||
if ($field->filter()) {
|
||||
$data = call_user_func($field->filter(), $data);
|
||||
}
|
||||
return response::json($data);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue