List existing organisations
This commit is contained in:
42
src/Sprunje/OrganisationSprunje.php
Normal file
42
src/Sprunje/OrganisationSprunje.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* AVSDev UF Organisations (https://avsdev.uk)
|
||||
*
|
||||
* @link https://git.avsdev.uk/avsdev/sprinkle-organisations
|
||||
* @license https://git.avsdev.uk/avsdev/sprinkle-organisations/blob/master/LICENSE.md (LGPL-3.0 License)
|
||||
*/
|
||||
|
||||
namespace UserFrosting\Sprinkle\Organisations\Sprunje;
|
||||
|
||||
use UserFrosting\Sprinkle\Core\Sprunje\Sprunje;
|
||||
|
||||
/**
|
||||
* OrganisationSprunje.
|
||||
*
|
||||
* Implements Sprunje for the organisations API.
|
||||
*
|
||||
* @author Craig Williams (https://avsdev.uk)
|
||||
*/
|
||||
class OrganisationSprunje extends Sprunje
|
||||
{
|
||||
protected $name = 'groups';
|
||||
|
||||
protected $sortable = [
|
||||
'name',
|
||||
'description',
|
||||
];
|
||||
|
||||
protected $filterable = [
|
||||
'name',
|
||||
'description',
|
||||
];
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function baseQuery()
|
||||
{
|
||||
return $this->classMapper->createInstance('organisation')->newQuery();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user