Add controllers.

このコミットが含まれているのは:
テクニカル諏訪子 2018-01-24 01:36:47 +09:00
コミット 9fdb6eaab6
5個のファイルの変更172行の追加0行の削除

28
app/Http/Controllers/CategoryController.php ノーマルファイル
ファイルの表示

@ -0,0 +1,28 @@
B<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
class CategoryController extends Controller {
public function __contruct() {
// Init SQL.
}
public function getCategories() {
// Select all users from the database, and return the results.
}
public function getCategory($id) {
// Select a specific user from the database, and return the result.
}
public function getCategoryParent($id) {
// Select a specific user from the database, and return the result.
}
public function getCategoryMinScreenshots($id) {
// Select a specific user from the database, and return the result.
}
}

52
app/Http/Controllers/FileController.php ノーマルファイル
ファイルの表示

@ -0,0 +1,52 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
class FileController extends Controller {
public function __contruct() {
// Init SQL.
}
public function getAllFiles() {
// Select all users from the database, and return the results.
}
public function getAllApprovedFiles() {
// Select all users from the database, and return the results.
}
public function getAllBrokenFiles() {
// Select all users from the database, and return the results.
}
public function getAllPendingFiles() {
// Select all users from the database, and return the results.
}
public function getFile($id) {
// Select a specific user from the database, and return the result.
}
public function getApprovedFile($id) {
// Select a specific user from the database, and return the result.
}
public function getBrokenFile($id) {
// Select a specific user from the database, and return the result.
}
public function getPendingFile($id) {
// Select a specific user from the database, and return the result.
}
public function getFilesInCategory($cat_id) {
// Select a specific user from the database, and return the result.
}
public function getWarningNotice(id) {
// Select a specific user from the database, and return the result.
}
}

28
app/Http/Controllers/OwnerController.php ノーマルファイル
ファイルの表示

@ -0,0 +1,28 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
class OwnerController extends Controller {
public function __contruct() {
// Init SQL.
}
public function getOwners() {
// Select all users from the database, and return the results.
}
public function getOwner($id) {
// Select a specific user from the database, and return the result.
}
public function getOwnerFile($file_id) {
// Select a specific user from the database, and return the result.
}
public function getOwnerUser($user_id) {
// Select a specific user from the database, and return the result.
}
}

44
app/Http/Controllers/PermissionController.php ノーマルファイル
ファイルの表示

@ -0,0 +1,44 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
class PermissionController extends Controller {
public function __contruct() {
// Init SQL.
}
public function getPermissionsFromModule() {
//
}
public function getPermissionFromModule($id) {
//
}
public function getStorePermissions() {
// Select all users from the database, and return the results.
}
public function getStorePermissionGroup($id) {
// Select a specific user from the database, and return the result.
}
public function getStorePermissionUser($id) {
// Select a specific user from the database, and return the result.
}
public function getUserPermissions() {
// Select all users from the database, and return the results.
}
public function getUserPermissionGroup($id) {
// Select a specific user from the database, and return the result.
}
public function getUserPermissionUser($id) {
// Select a specific user from the database, and return the result.
}
}

20
app/Http/Controllers/UserController.php ノーマルファイル
ファイルの表示

@ -0,0 +1,20 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
class UserController extends Controller {
public function __contruct() {
// Init SQL.
}
public function getUsers() {
// Select all users from the database, and return the results.
}
public function getUser($id) {
// Select a specific user from the database, and return the result.
}
}