diff options
Diffstat (limited to 'main/app/sprinkles/admin/src/Sprunje/GroupSprunje.php')
-rwxr-xr-x | main/app/sprinkles/admin/src/Sprunje/GroupSprunje.php | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/main/app/sprinkles/admin/src/Sprunje/GroupSprunje.php b/main/app/sprinkles/admin/src/Sprunje/GroupSprunje.php new file mode 100755 index 0000000..7c75691 --- /dev/null +++ b/main/app/sprinkles/admin/src/Sprunje/GroupSprunje.php @@ -0,0 +1,42 @@ +<?php +/** + * UserFrosting (http://www.userfrosting.com) + * + * @link https://github.com/userfrosting/UserFrosting + * @license https://github.com/userfrosting/UserFrosting/blob/master/licenses/UserFrosting.md (MIT License) + */ +namespace UserFrosting\Sprinkle\Admin\Sprunje; + +use Illuminate\Database\Capsule\Manager as Capsule; +use UserFrosting\Sprinkle\Core\Facades\Debug; +use UserFrosting\Sprinkle\Core\Sprunje\Sprunje; + +/** + * GroupSprunje + * + * Implements Sprunje for the groups API. + * + * @author Alex Weissman (https://alexanderweissman.com) + */ +class GroupSprunje extends Sprunje +{ + protected $name = 'groups'; + + protected $sortable = [ + 'name', + 'description' + ]; + + protected $filterable = [ + 'name', + 'description' + ]; + + /** + * {@inheritDoc} + */ + protected function baseQuery() + { + return $this->classMapper->createInstance('group')->newQuery(); + } +} |