diff --git a/backend/TE/AppDB.php b/backend/TE/AppDB.php index b00cdc6164a1421d87ab4bf5f42b0e46b2e56b61..17e6fee4661fd5e4d4baf88277aeba1d7c80503a 100644 --- a/backend/TE/AppDB.php +++ b/backend/TE/AppDB.php @@ -1940,6 +1940,24 @@ class AppDB_TE extends AppDB /* * Admin view */ + public function getSearchableData() + { + if( ! $_SESSION[ 'user' ][ 'isadmin' ] ) + { + throw new Exception( "Access denied" ); + } else { + $ret = Array(); + + $ret[ "users" ] = $this->getUserList(); + $ret[ "exercises" ] = $this->getAllExercises(); + $ret[ "usergroups" ] = $this->getUserGroups(); + $ret[ "folders" ] = $this->getFolders(); + $ret[ "images" ] = $this->getImageLibrary(); + + return $ret; + } + } + public function getUserList( $only_users = 0 ) { if( ! $_SESSION[ 'user' ][ 'isadmin' ] )