-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dennis Eichhorn
committed
Feb 4, 2024
1 parent
7ddc44f
commit 854cad4
Showing
9 changed files
with
236 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
/** | ||
* Jingga | ||
* | ||
* PHP Version 8.1 | ||
* | ||
* @package Modules\Tasks\Admin\Install | ||
* @copyright Dennis Eichhorn | ||
* @license OMS License 2.0 | ||
* @version 1.0.0 | ||
* @link https://jingga.app | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Modules\Tasks\Admin\Install; | ||
|
||
use phpOMS\Application\ApplicationAbstract; | ||
|
||
/** | ||
* Search class. | ||
* | ||
* @package Modules\Tasks\Admin\Install | ||
* @license OMS License 2.0 | ||
* @link https://jingga.app | ||
* @since 1.0.0 | ||
*/ | ||
final class Search | ||
{ | ||
/** | ||
* Install navigation providing | ||
* | ||
* @param ApplicationAbstract $app Application | ||
* @param string $path Module path | ||
* | ||
* @return void | ||
* | ||
* @since 1.0.0 | ||
*/ | ||
public static function install(ApplicationAbstract $app, string $path) : void | ||
{ | ||
\Modules\Search\Admin\Installer::installExternal($app, ['path' => __DIR__ . '/SearchCommands.php']); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
/** | ||
* Jingga | ||
* | ||
* PHP Version 8.1 | ||
* | ||
* @package Modules\Tasks | ||
* @copyright Dennis Eichhorn | ||
* @license OMS License 2.0 | ||
* @version 1.0.0 | ||
* @link https://jingga.app | ||
*/ | ||
declare(strict_types=1); | ||
|
||
use Modules\Tasks\Controller\SearchController; | ||
use Modules\Tasks\Models\PermissionCategory; | ||
use phpOMS\Account\PermissionType; | ||
use phpOMS\Router\RouteVerb; | ||
|
||
return [ | ||
'^(?!:).+.*?' => [ | ||
[ | ||
'dest' => '\Modules\Tasks\Controller\SearchController:searchGeneral', | ||
'verb' => RouteVerb::ANY, | ||
'permission' => [ | ||
'module' => SearchController::NAME, | ||
'type' => PermissionType::READ, | ||
'state' => PermissionCategory::TASK, | ||
], | ||
], | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"id": "{id}", | ||
"title": "{title}", | ||
"content": "{content}", | ||
"tags": ["{tags}"] | ||
} |
Oops, something went wrong.