├── .env.example ├── .gitattributes ├── .gitignore ├── .htaccess ├── .phpunit.result.cache ├── App ├── API │ ├── Help │ │ └── UserHelp.php │ └── Search │ │ └── UserSearch.php ├── Commander │ ├── BranchCommander.php │ ├── CategoryCommander.php │ ├── CostCenterCommander.php │ ├── DiscoveryCommander.php │ ├── HolidayCommander.php │ ├── LeaveTypeCommander.php │ ├── MessageCommander.php │ ├── NotificationCommander.php │ ├── PostCommander.php │ ├── ProjectCommander.php │ ├── TagCommander.php │ └── TimesheetCommander.php ├── Controller │ ├── API │ │ ├── AccountController.php │ │ └── UserController.php │ ├── ActivationController.php │ ├── Admin │ │ ├── AccessDeniedController.php │ │ ├── AdminLeavesController.php │ │ ├── BranchController.php │ │ ├── CategoryController.php │ │ ├── CostCenterController.php │ │ ├── DashboardController.php │ │ ├── DiscoveryController.php │ │ ├── EmployeeLeavesController.php │ │ ├── GroupController.php │ │ ├── HistoryController.php │ │ ├── HolidayController.php │ │ ├── LeaveController.php │ │ ├── MenuController.php │ │ ├── MessageController.php │ │ ├── NotificationController.php │ │ ├── PermissionController.php │ │ ├── PluginController.php │ │ ├── PostController.php │ │ ├── ProfileController.php │ │ ├── ProjectController.php │ │ ├── RoleController.php │ │ ├── SearchController.php │ │ ├── SettingController.php │ │ ├── SupportController.php │ │ ├── SystemController.php │ │ ├── TagController.php │ │ ├── TicketController.php │ │ ├── TimesheetController.php │ │ ├── UserController.php │ │ └── UserRoleController.php │ ├── ErrorController.php │ ├── HomeController.php │ ├── Installer │ │ ├── Form │ │ │ └── ServerForm.php │ │ ├── InstallController.php │ │ └── MIddlewares │ │ │ ├── HasEnv.php │ │ │ └── IsEnvironmentReady.php │ ├── LogoutController.php │ ├── PasswordController.php │ ├── Profile │ │ └── AccountController.php │ ├── RegistrationController.php │ └── SecurityController.php ├── DataColumns │ ├── BranchColumn.php │ ├── CategoryColumn.php │ ├── CostCenterColumn.php │ ├── HolidayColumn.php │ ├── LeaveTypeColumn.php │ ├── MessageColumn.php │ ├── NotificationColumn.php │ ├── PostColumn.php │ ├── ProjectColumn.php │ ├── TagColumn.php │ └── TimesheetColumn.php ├── Entity │ ├── BranchEntity.php │ ├── CategoryEntity.php │ ├── CostCenterEntity.php │ ├── HolidayEntity.php │ ├── LeaveTypeEntity.php │ ├── MessageEntity.php │ ├── NotificationEntity.php │ ├── PostEntity.php │ ├── ProjectEntity.php │ ├── SearchEntity.php │ ├── TagEntity.php │ ├── TimesheetEntity.php │ └── UserProfileEntity.php ├── Enums │ └── Status.php ├── Event │ ├── BranchActionEvent.php │ ├── CategoryActionEvent.php │ ├── CostCenterActionEvent.php │ ├── HolidayActionEvent.php │ ├── LeaveTypeActionEvent.php │ ├── MessageActionEvent.php │ ├── PostActionEvent.php │ ├── ProjectActionEvent.php │ ├── SearchActionEvent.php │ ├── TagActionEvent.php │ ├── TimesheetActionEvent.php │ └── UserProfileActionEvent.php ├── EventListener │ ├── PostActionSubscriber.php │ └── SendRegistrationEmailListener.php ├── EventSubscriber │ ├── BranchActionSubscriber.php │ ├── CategoryActionSubscriber.php │ ├── CostCenterActionSubscriber.php │ ├── HolidayActionSubscriber.php │ ├── LeaveTypeActionSubscriber.php │ ├── MessageActionSubscriber.php │ ├── PostActionSubscriber.php │ ├── ProjectActionSubscriber.php │ ├── RegistrationActionSubscriber.php │ ├── SearchActionSubscriber.php │ ├── TagActionSubscriber.php │ ├── TimesheetActionSubscriber.php │ └── UserProfileActionSubscriber.php ├── Forms │ ├── Admin │ │ ├── Branch │ │ │ └── BranchForm.php │ │ ├── Category │ │ │ └── CategoryForm.php │ │ ├── CostCenter │ │ │ └── CostCenterForm.php │ │ ├── Holidays │ │ │ └── HolidayForm.php │ │ ├── Leaves │ │ │ └── LeaveForm.php │ │ ├── Message │ │ │ ├── MessageForm.php │ │ │ └── MessageReplyForm.php │ │ ├── Notification │ │ │ └── NotificationForm.php │ │ ├── Post │ │ │ ├── PostForm.php │ │ │ ├── PostMediaForm.php │ │ │ ├── PostMetaForm.php │ │ │ └── PostSidebarForm.php │ │ ├── Project │ │ │ └── ProjectForm.php │ │ ├── Search │ │ │ └── SearchForm.php │ │ ├── Tag │ │ │ └── TagForm.php │ │ ├── Timesheet │ │ │ └── TimesheetForm.php │ │ └── User │ │ │ ├── BulkDeleteForm.php │ │ │ └── SettingsForm.php │ └── Profile │ │ ├── DeleteAccountForm.php │ │ ├── EditEmailForm.php │ │ ├── EditNameForm.php │ │ └── EditPasswordForm.php ├── Middleware │ ├── After │ │ └── SessionExpiresCleanUp.php │ └── Before │ │ ├── EmailAlreadyExists.php │ │ ├── HasEnv.php │ │ ├── InitializeSettings.php │ │ ├── IntegrityConstraints.php │ │ ├── PreventionActions.php │ │ └── isAlreadyLogin.php ├── Model │ ├── BranchModel.php │ ├── CategoryModel.php │ ├── CostCenterModel.php │ ├── HolidayModel.php │ ├── LeaveTypeModel.php │ ├── MessageModel.php │ ├── NotificationModel.php │ ├── PostModel.php │ ├── ProjectModel.php │ ├── TagModel.php │ ├── TimesheetModel.php │ └── UserProfileModel.php ├── Modules │ └── LeaveTypeModule │ │ ├── Event │ │ └── LeaveTypeActionEvent.php │ │ ├── LeaveTypeColumn.php │ │ ├── LeaveTypeCommander.php │ │ ├── LeaveTypeController.php │ │ ├── LeaveTypeEntity.php │ │ ├── LeaveTypeModel.php │ │ ├── LeaveTypeSchema.php │ │ ├── LeaveTypeValidate.php │ │ ├── Subscriber │ │ └── LeaveTypeActionSubscriber.php │ │ ├── events.yml │ │ └── module.yml ├── Relationships │ ├── PermissionRelationship.php │ └── RoleRelationship.php ├── Repository │ ├── InstallRepository.php │ └── PostRepository.php ├── Resource │ └── UserResource.php ├── Schema │ ├── BranchSchema.php │ ├── CategorySchema.php │ ├── Change │ │ ├── ChangeStatus_TestSchema.php │ │ └── ModifyStatus_TestSchema.php │ ├── CostCenterSchema.php │ ├── HolidaySchema.php │ ├── LeaveTypeSchema.php │ ├── MessageSchema.php │ ├── Null │ │ └── NotificationSchema.php │ ├── PostSchema.php │ ├── ProjectSchema.php │ ├── TagSchema.php │ └── TimesheetSchema.php ├── Templates │ ├── _global │ │ ├── _block_content.html │ │ ├── _block_footer.html │ │ ├── _block_header.html │ │ ├── _block_header_nav.html │ │ ├── _block_sidebar.html │ │ └── _block_sidebar_bottom_nav.html │ ├── admin │ │ ├── _global │ │ │ ├── _global_datatable.html │ │ │ ├── _global_export.html │ │ │ ├── _global_import.html │ │ │ ├── _global_no_records.html │ │ │ └── _global_page_settings.html │ │ ├── accessDenied │ │ │ └── index.html │ │ ├── branch │ │ │ ├── edit.html │ │ │ ├── index.html │ │ │ ├── new.html │ │ │ └── settings.html │ │ ├── bulk_action │ │ │ └── bulk.html │ │ ├── category │ │ │ ├── edit.html │ │ │ ├── index.html │ │ │ ├── new.html │ │ │ └── settings.html │ │ ├── costCenter │ │ │ ├── edit.html │ │ │ ├── index.html │ │ │ ├── new.html │ │ │ └── settings.html │ │ ├── dashboard │ │ │ ├── Untitled-1.html │ │ │ ├── _parts │ │ │ │ ├── dashboard_interactive_heading.html │ │ │ │ ├── display_table.html │ │ │ │ ├── news_block.html │ │ │ │ ├── statistics_cards.html │ │ │ │ ├── statistics_cards2.html │ │ │ │ └── welcome_panel.html │ │ │ ├── app │ │ │ │ └── app_table.html │ │ │ ├── block_activities.html │ │ │ ├── block_github.html │ │ │ ├── block_health_status.html │ │ │ ├── block_just_now.html │ │ │ ├── block_main.html │ │ │ ├── block_project.html │ │ │ ├── block_session.html │ │ │ ├── block_threaded_comments.html │ │ │ ├── block_ticket.html │ │ │ ├── health.html │ │ │ ├── health │ │ │ │ ├── critical.html │ │ │ │ ├── error_warning.html │ │ │ │ └── healthy.html │ │ │ ├── index.html │ │ │ ├── nav_switcher.html │ │ │ ├── offcanvas │ │ │ │ └── dashboard_toggle.html │ │ │ └── settings.html │ │ ├── discovery │ │ │ ├── _partials │ │ │ │ ├── accordion.html │ │ │ │ ├── controller_discovery_form.html │ │ │ │ ├── discovery_main.html │ │ │ │ └── discovery_sidebar.html │ │ │ └── discover.html │ │ ├── group │ │ │ ├── assigned.html │ │ │ ├── edit.html │ │ │ ├── index.html │ │ │ ├── new.html │ │ │ └── settings.html │ │ ├── history │ │ │ └── index.html │ │ ├── holiday │ │ │ ├── edit.html │ │ │ ├── index.html │ │ │ ├── new.html │ │ │ └── settings.html │ │ ├── leave │ │ │ ├── edit.html │ │ │ ├── index.html │ │ │ ├── new.html │ │ │ └── settings.html │ │ ├── menu │ │ │ ├── _partials │ │ │ │ └── order_body.html │ │ │ ├── edit.html │ │ │ ├── index.html │ │ │ ├── new.html │ │ │ ├── order.html │ │ │ └── settings.html │ │ ├── message │ │ │ ├── _partials │ │ │ │ ├── show_profile.html │ │ │ │ └── sidebar.html │ │ │ ├── forward.html │ │ │ ├── index.html │ │ │ ├── new.html │ │ │ ├── reply.html │ │ │ ├── settings.html │ │ │ └── show.html │ │ ├── notification │ │ │ ├── settings.html │ │ │ └── show.html │ │ ├── permission │ │ │ ├── bulk.html │ │ │ ├── edit.html │ │ │ ├── index.html │ │ │ ├── new.html │ │ │ ├── settings.html │ │ │ └── view_bulk_actions.html │ │ ├── plugin │ │ │ └── index.html │ │ ├── post │ │ │ ├── _partials │ │ │ │ ├── page_nav.html │ │ │ │ └── sidebar.html │ │ │ ├── edit.html │ │ │ ├── index.html │ │ │ ├── new.html │ │ │ └── settings.html │ │ ├── profile │ │ │ └── index.html │ │ ├── project │ │ │ ├── edit.html │ │ │ ├── index.html │ │ │ └── new.html │ │ ├── role │ │ │ ├── assigned.html │ │ │ ├── edit.html │ │ │ ├── index.html │ │ │ ├── log.html │ │ │ ├── new.html │ │ │ ├── role_permissions.html │ │ │ └── settings.html │ │ ├── search │ │ │ └── search.html │ │ ├── setting │ │ │ ├── _parts │ │ │ │ ├── add_button.html │ │ │ │ ├── application.html │ │ │ │ ├── general.html │ │ │ │ ├── go_back.html │ │ │ │ ├── restore.html │ │ │ │ ├── services.html │ │ │ │ ├── system_report.html │ │ │ │ └── update.html │ │ │ ├── application.html │ │ │ ├── branding.html │ │ │ ├── extension.html │ │ │ ├── general.html │ │ │ ├── index.html │ │ │ ├── localisation.html │ │ │ ├── purge.html │ │ │ ├── security.html │ │ │ └── tools.html │ │ ├── support │ │ │ ├── _partials │ │ │ │ ├── changelog_sidebar.html │ │ │ │ └── documentation_sidebar.html │ │ │ ├── changelog.html │ │ │ └── documentation.html │ │ ├── system │ │ │ ├── index.html │ │ │ ├── requestPermission.html │ │ │ ├── show.html │ │ │ └── trash.html │ │ ├── tag │ │ │ ├── edit.html │ │ │ ├── index.html │ │ │ ├── new.html │ │ │ └── settings.html │ │ ├── team │ │ │ └── index.html │ │ ├── ticket │ │ │ ├── _partials │ │ │ │ └── sidebar.html │ │ │ ├── edit.html │ │ │ ├── index.html │ │ │ └── new.html │ │ ├── timesheet │ │ │ ├── edit.html │ │ │ ├── index.html │ │ │ ├── new.html │ │ │ └── settings.html │ │ └── user │ │ │ ├── _partials │ │ │ ├── activity_timeline.html │ │ │ ├── history_timeline.html │ │ │ └── notes_timeline.html │ │ │ ├── _views │ │ │ ├── view_lock.html │ │ │ ├── view_pending.html │ │ │ ├── view_table.html │ │ │ └── view_tabs.html │ │ │ ├── banner │ │ │ └── user_not_active.html │ │ │ ├── clone.html │ │ │ ├── edit.html │ │ │ ├── hardDelete.html │ │ │ ├── index.html │ │ │ ├── log.html │ │ │ ├── new.html │ │ │ ├── notes.html │ │ │ ├── overview_current_task.html │ │ │ ├── overview_recent_activities.html │ │ │ ├── personal.html │ │ │ ├── personal_activities.html │ │ │ ├── personal_connect.html │ │ │ ├── personal_events.html │ │ │ ├── personal_followers.html │ │ │ ├── preferences.html │ │ │ ├── privilege.html │ │ │ ├── settings.html │ │ │ ├── show.html │ │ │ ├── trash.html │ │ │ ├── user_privilege_modal.html │ │ │ ├── users_overview.html │ │ │ └── view_bulk_actions.html │ ├── client │ │ ├── activation │ │ │ ├── activate.html │ │ │ └── activation_failed.html │ │ ├── error │ │ │ ├── error.html │ │ │ ├── errora.html │ │ │ └── errorm.html │ │ ├── home │ │ │ └── index.html │ │ ├── logout │ │ │ └── logout.html │ │ ├── password │ │ │ ├── forgot.html │ │ │ └── reset.html │ │ ├── registration │ │ │ ├── email_template.html │ │ │ ├── register.html │ │ │ └── registered.html │ │ └── security │ │ │ ├── index.html │ │ │ ├── logout.html │ │ │ └── session.html │ ├── frontend_layout.html │ ├── layout.html │ ├── loader.html │ └── profile │ │ └── account │ │ ├── email.html │ │ ├── index.html │ │ ├── name.html │ │ └── password.html ├── Test │ ├── TestActionEvent.php │ ├── TestActionSubscriber.php │ ├── TestApiResource.php │ ├── TestCommander.php │ ├── TestController.php │ ├── TestEntity.php │ ├── TestForm.php │ ├── TestListeber.php │ ├── TestModel.php │ ├── TestRelationship.php │ ├── TestRepository.php │ ├── TestSchema.php │ ├── TestValidate.php │ ├── test.yml │ └── views │ │ ├── edit.html │ │ ├── index.html │ │ ├── logs.html │ │ ├── new.html │ │ └── settings.html └── Validate │ ├── BranchValidate.php │ ├── CategoryValidate.php │ ├── CostCenterValidate.php │ ├── HolidayValidate.php │ ├── LeaveTypeValidate.php │ ├── MessageValidate.php │ ├── PostValidate.php │ ├── ProjectValidate.php │ ├── TagValidate.php │ ├── TimesheetValidate.php │ └── UserProfileValidate.php ├── CHANGELOG.md ├── Config ├── commander.yml ├── controller.yml ├── extend_assets.yml ├── extend_events.yml ├── extend_routes.yml └── magma_blank.yml ├── Public ├── .htaccess ├── assets │ ├── css │ │ ├── main.css │ │ ├── normalize.css │ │ └── uikit │ │ │ ├── all.min.css │ │ │ ├── custom.css │ │ │ ├── gauges.css │ │ │ ├── notyf.min.css │ │ │ ├── sidebar.css │ │ │ └── user-show.css │ ├── images │ │ ├── dashboard-logo-white.svg │ │ ├── dashboard-logo.svg │ │ ├── dashboard.png │ │ ├── flags │ │ │ ├── de.svg │ │ │ ├── es.svg │ │ │ ├── fr.svg │ │ │ └── gb.svg │ │ ├── language │ │ │ ├── en.svg │ │ │ └── es.svg │ │ ├── manual.png │ │ ├── sort │ │ │ ├── iconmonstr-sort-13.svg │ │ │ ├── iconmonstr-sort-14.svg │ │ │ ├── iconmonstr-sort-15.svg │ │ │ ├── iconmonstr-sort-16.svg │ │ │ ├── iconmonstr-sort-17.svg │ │ │ ├── iconmonstr-sort-18.svg │ │ │ ├── iconmonstr-sort-19.svg │ │ │ ├── iconmonstr-sort-20.svg │ │ │ ├── iconmonstr-sort-21.svg │ │ │ ├── iconmonstr-sort-22.svg │ │ │ ├── sort-down.svg │ │ │ ├── sort-up.svg │ │ │ └── sort.svg │ │ ├── text.png │ │ ├── undraw_posting_photo.svg │ │ ├── undraw_profile.svg │ │ ├── undraw_profile_1.svg │ │ ├── undraw_profile_2.svg │ │ ├── undraw_profile_3.svg │ │ └── undraw_rocket.svg │ └── js │ │ ├── react │ │ ├── react_button.js │ │ ├── react_commander.js │ │ ├── react_commander_navigator.js │ │ ├── react_datatable.js │ │ ├── react_datatable_tabs.js │ │ └── react_pagination.js │ │ └── uikit │ │ ├── all.min.js │ │ ├── app.js │ │ ├── charts.js │ │ ├── check-all.js │ │ ├── checkall.js │ │ ├── ckeditor.js │ │ ├── filters.js │ │ ├── gauges.js │ │ ├── hideShowPassword.min.js │ │ ├── jquery.easing.min.js │ │ ├── jquery.min.js │ │ ├── jquery.pjax.js │ │ ├── main.js │ │ ├── mdeditor.min.js │ │ ├── modernizr-3.11.2.min.js │ │ ├── notification.js │ │ ├── notyf.min.js │ │ ├── react_commander.js │ │ ├── script.js │ │ ├── sidebar.js │ │ ├── sparkline.js │ │ ├── sparks.js │ │ ├── status.js │ │ └── system-report.js ├── include.php └── index.php ├── README.md ├── Storage └── .gitignore ├── bin ├── console └── push-server.php ├── composer.json ├── i18n └── locale │ ├── activation.yml │ ├── base.yml │ ├── gb.yml │ ├── index.yml │ ├── password.yml │ ├── registration.yml │ ├── role.yml │ ├── security.yml │ └── user.yml ├── lavacms.sql ├── magma ├── change.php ├── create.php ├── destroy.php ├── inc.php ├── migrate.php └── migration │ ├── reset.php │ └── rollback.php ├── robot.txt ├── tests └── .gitkeep └── todo.txt /.env.example: -------------------------------------------------------------------------------- 1 | DB_DRIVER=mysql 2 | DB_HOST=your_database_host 3 | DB_NAME=your_database_name 4 | DB_PASSWORD= 5 | DB_USER=root 6 | DB_PREFIX= 7 | DB_PORT=3306 8 | 9 | DB_CHARSET=utf8mb4 10 | DB_ENGINE=InnoDB 11 | DB_COLLATE= 12 | DB_FORMAT=dynamic 13 | 14 | SMTPDebug=0 15 | SMTPAuth=true 16 | SMTPSecure=tls 17 | Username=mailtrap_username 18 | Password=mailtrap_password 19 | Host=smtp.mailtrap.io 20 | Port=2525 21 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /vendor/ 2 | /App/Templates/cache/ 3 | /.env 4 | /composer.lock 5 | /App/Templates/.cache/ 6 | /node_modules/ 7 | /.cache/ 8 | /App/Migrations/ 9 | /.idea/ 10 | /todo.txt 11 | /messages.sql 12 | /structure.json 13 | /checklist.txt 14 | /employees.txt 15 | /idea.txt -------------------------------------------------------------------------------- /.htaccess: -------------------------------------------------------------------------------- 1 | RewriteEngine On 2 | RewriteBase / 3 | 4 | RewriteCond %{THE_REQUEST} /public/([^\s?]*) [NC] 5 | RewriteRule ^ %1 [L,NE,R=302] 6 | RewriteRule ^(.*)$ public/index.php?$1 [L,QSA] 7 | -------------------------------------------------------------------------------- /.phpunit.result.cache: -------------------------------------------------------------------------------- 1 | C:37:"PHPUnit\Runner\DefaultTestResultCache":44:{a:2:{s:7:"defects";a:0:{}s:5:"times";a:0:{}}} -------------------------------------------------------------------------------- /App/API/Help/UserHelp.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\API\Help; 14 | 15 | class UserHelp 16 | { 17 | 18 | public function init(): array 19 | { 20 | return [ 21 | [ 22 | "title" => "What are pages?", 23 | "desc" => "this is some description base on the name search a user can search form" 24 | ], 25 | [ 26 | "title" => "Creating new pages", 27 | "desc" => "this is some description base on the name search a user can search form" 28 | ], 29 | [ 30 | "title" => "How to edit pages", 31 | "desc" => "this is some description base on the name search a user can search form" 32 | ], 33 | [ 34 | "title" => "Deleting a page", 35 | "desc" => "this is some description base on the name search a user can search form" 36 | ], 37 | [ 38 | "title" => "Customizing pages?", 39 | "desc" => "this is some description base on the name search a user can search form" 40 | ] 41 | 42 | 43 | ]; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /App/API/Search/UserSearch.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | declare(strict_types=1); 11 | 12 | namespace App\API\Search; 13 | 14 | class UserSearch 15 | { 16 | 17 | public function init(): array 18 | { 19 | return [ 20 | ]; 21 | } 22 | 23 | } -------------------------------------------------------------------------------- /App/Controller/API/AccountController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller\API; 14 | 15 | use App\Model\UserModel; 16 | use MagmaCore\Base\BaseController; 17 | 18 | class AccountController extends BaseController 19 | { 20 | 21 | public function __construct(array $routeParams) 22 | { 23 | parent::__construct($routeParams); 24 | $this->diContainer( 25 | [ 26 | 'repository' => UserModel::class, 27 | ] 28 | ); 29 | } 30 | 31 | /** 32 | * Validate if email is available (AJAX) for a new signup or an existing user. 33 | * The ID of an existing user can be passed in in the querystring to ignore when 34 | * checking if an email already exists or not. 35 | * 36 | * @return void 37 | */ 38 | protected function validateEmailAction() 39 | { 40 | $isValid = !$this->repository->emailExists($_GET['email'], $_GET['ignore_id'] ?? null); 41 | header('Content-Type: application/json'); 42 | echo json_encode($isValid); 43 | //$handler = new RestHandler($isValid); 44 | //echo $handler->response(); 45 | //echo (new RestHandler($isValid))->response(); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /App/Controller/ActivationController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | declare(strict_types=1); 11 | 12 | namespace App\Controller; 13 | 14 | class ActivationController extends \MagmaCore\UserManager\Activation\ActivationController 15 | { } -------------------------------------------------------------------------------- /App/Controller/Admin/AccessDeniedController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller\Admin; 14 | 15 | class AccessDeniedController extends \MagmaCore\Administrator\Controller\AccessDeniedController 16 | { } 17 | 18 | -------------------------------------------------------------------------------- /App/Controller/Admin/AdminLeavesController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller\Admin; 14 | 15 | use MagmaCore\Base\Traits\ControllerCommonTrait; 16 | 17 | /** 18 | * Controller which allows crud operation of the different cost center for your company 19 | * methods 20 | * 21 | * indexAction 22 | * showAction 23 | * newAction 24 | * editAction 25 | * copyAction 26 | * trashAction 27 | * untrashAction 28 | * hardDeleteAction 29 | * bulkAction 30 | */ 31 | class AdminLeavesController extends \MagmaCore\Administrator\Controller\AdminController 32 | { 33 | 34 | use ControllerCommonTrait; 35 | 36 | public function __construct(array $routeParams) 37 | { 38 | parent::__construct($routeParams); 39 | 40 | $this->addDefinitions( 41 | [ 42 | ] 43 | ); 44 | } 45 | 46 | } -------------------------------------------------------------------------------- /App/Controller/Admin/DashboardController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | declare(strict_types=1); 11 | 12 | namespace App\Controller\Admin; 13 | 14 | class DashboardController extends \MagmaCore\Administrator\Dashboard\DashboardController 15 | { } -------------------------------------------------------------------------------- /App/Controller/Admin/DiscoveryController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | declare(strict_types=1); 11 | 12 | namespace App\Controller\Admin; 13 | 14 | use MagmaCore\Base\BaseController; 15 | 16 | class DiscoveryController extends \MagmaCore\Administrator\Controller\DiscoveryController 17 | { 18 | 19 | } -------------------------------------------------------------------------------- /App/Controller/Admin/EmployeeLeavesController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller\Admin; 14 | 15 | use MagmaCore\Base\Traits\ControllerCommonTrait; 16 | 17 | /** 18 | * Controller which allows crud operation of the different cost center for your company 19 | * methods 20 | * 21 | * indexAction 22 | * showAction 23 | * newAction 24 | * editAction 25 | * copyAction 26 | * trashAction 27 | * untrashAction 28 | * hardDeleteAction 29 | * bulkAction 30 | */ 31 | class EmployeeLeavesController extends \MagmaCore\Administrator\Controller\AdminController 32 | { 33 | 34 | use ControllerCommonTrait; 35 | 36 | public function __construct(array $routeParams) 37 | { 38 | parent::__construct($routeParams); 39 | 40 | $this->addDefinitions( 41 | [ 42 | ] 43 | ); 44 | } 45 | 46 | } -------------------------------------------------------------------------------- /App/Controller/Admin/GroupController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller\Admin; 14 | 15 | 16 | class GroupController extends \MagmaCore\UserManager\Rbac\Group\GroupController 17 | { } 18 | 19 | -------------------------------------------------------------------------------- /App/Controller/Admin/HistoryController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | declare(strict_types=1); 11 | 12 | namespace App\Controller\Admin; 13 | 14 | use MagmaCore\Base\BaseController; 15 | use MagmaCore\History\HistoryController as HsController; 16 | 17 | class HistoryController extends HsController 18 | { 19 | 20 | } -------------------------------------------------------------------------------- /App/Controller/Admin/MenuController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller\Admin; 14 | 15 | use MagmaCore\PanelMenu\EventSubscriber\MenuActionSubscriber; 16 | 17 | class MenuController extends \MagmaCore\PanelMenu\MenuController 18 | { 19 | 20 | 21 | } 22 | 23 | -------------------------------------------------------------------------------- /App/Controller/Admin/NotificationController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller\Admin; 14 | 15 | class NotificationController extends \MagmaCore\Notification\NotificationController 16 | { 17 | } 18 | 19 | -------------------------------------------------------------------------------- /App/Controller/Admin/PermissionController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller\Admin; 14 | 15 | class PermissionController extends \MagmaCore\UserManager\Rbac\Permission\PermissionController 16 | { } 17 | -------------------------------------------------------------------------------- /App/Controller/Admin/PluginController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller\Admin; 14 | 15 | class PluginController extends \MagmaCore\PluginPanel\PluginController 16 | { } 17 | -------------------------------------------------------------------------------- /App/Controller/Admin/ProfileController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller\Admin; 14 | 15 | use MagmaCore\Base\Exception\BaseInvalidArgumentException; 16 | 17 | class ProfileController extends UserController 18 | { 19 | 20 | /** 21 | * Extends the base constructor method. Which gives us access to all the base 22 | * methods implemented within the base controller class. 23 | * Class dependency can be loaded within the constructor by calling the 24 | * container method and passing in an associative array of dependency to use within 25 | * the class 26 | * 27 | * @param array $routeParams 28 | * @return void 29 | * @throws BaseInvalidArgumentException 30 | */ 31 | public function __construct(array $routeParams) 32 | { 33 | parent::__construct($routeParams); 34 | 35 | } 36 | 37 | protected function indexAction() 38 | { 39 | $this->showAction 40 | ->execute($this, NULL, NULL, NULL, __METHOD__) 41 | ->render() 42 | ->with() 43 | ->singular() 44 | ->end(); 45 | 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /App/Controller/Admin/RoleController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller\Admin; 14 | 15 | 16 | class RoleController extends \MagmaCore\UserManager\Rbac\Role\RoleController 17 | { } 18 | -------------------------------------------------------------------------------- /App/Controller/Admin/SearchController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller\Admin; 14 | 15 | use MagmaCore\Base\Domain\Actions\SearchAction; 16 | use App\Entity\SearchEntity; 17 | use App\Forms\Admin\Search\SearchForm; 18 | use App\Event\SearchActionEvent; 19 | use MagmaCore\UserManager\UserModel; 20 | 21 | class SearchController extends \MagmaCore\Administrator\Controller\AdminController 22 | { 23 | 24 | public function __construct(array $routeParams) 25 | { 26 | parent::__construct($routeParams); 27 | 28 | $this->addDefinitions( 29 | [ 30 | 'searchAction' => SearchAction::class, 31 | 'searchForm' => SearchForm::class, 32 | 'repository' => UserModel::class 33 | ] 34 | ); 35 | } 36 | 37 | protected function searchAction() 38 | { 39 | $this->searchAction 40 | ->execute($this, SearchEntity::class, SearchActionEvent::class, NULL, __METHOD__) 41 | ->render() 42 | ->with() 43 | ->form($this->searchForm) 44 | ->end(); 45 | } 46 | 47 | 48 | } 49 | -------------------------------------------------------------------------------- /App/Controller/Admin/SettingController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller\Admin; 14 | 15 | class 16 | SettingController extends \MagmaCore\Settings\SettingController 17 | { } -------------------------------------------------------------------------------- /App/Controller/Admin/SupportController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller\Admin; 14 | 15 | class SupportController extends \MagmaCore\Administrator\Support\SupportController 16 | { 17 | 18 | } 19 | 20 | -------------------------------------------------------------------------------- /App/Controller/Admin/SystemController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | declare(strict_types=1); 11 | 12 | namespace App\Controller\Admin; 13 | 14 | use MagmaCore\Base\Domain\Actions\IndexAction; 15 | use MagmaCore\System\App\Controller\SystemController as CoreSystemController; 16 | use MagmaCore\System\App\DataColumns\SystemColumn; 17 | use MagmaCore\System\App\Model\EventModel; 18 | 19 | final class SystemController extends CoreSystemController 20 | { } 21 | -------------------------------------------------------------------------------- /App/Controller/Admin/TicketController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller\Admin; 14 | 15 | class TicketController extends \MagmaCore\Ticket\TicketController 16 | { 17 | 18 | } 19 | 20 | -------------------------------------------------------------------------------- /App/Controller/Admin/UserController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller\Admin; 14 | 15 | class UserController extends \MagmaCore\UserManager\UserController 16 | { } 17 | -------------------------------------------------------------------------------- /App/Controller/Admin/UserRoleController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller\Admin; 14 | 15 | class UserRoleController extends \MagmaCore\UserManager\Controller\UserRoleController 16 | { 17 | 18 | } 19 | -------------------------------------------------------------------------------- /App/Controller/ErrorController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller; 14 | 15 | class ErrorController extends \MagmaCore\System\ErrorController 16 | { 17 | 18 | } 19 | 20 | -------------------------------------------------------------------------------- /App/Controller/Installer/MIddlewares/HasEnv.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller\Installer\Middleware; 14 | 15 | use Closure; 16 | use MagmaCore\Middleware\BeforeMiddleware; 17 | 18 | class HasEnv extends BeforeMiddleware 19 | { 20 | 21 | /** 22 | * Prevent unauthorized access to the administration panel. Only users with specific 23 | * privileges can access the admin area. 24 | * 25 | * @param Object $middleware 26 | * @param Closure $next 27 | * @return void 28 | */ 29 | public function middleware(object $middleware, Closure $next) 30 | { 31 | if (!file_exists(APP_ROOT . '/.env.lip')) { 32 | if ($middleware->error) { 33 | $middleware->error->addError(['missing_env' => 'Error locating the system .env file.'], $middleware)->dispatchError(); 34 | } 35 | } 36 | return $next($middleware); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /App/Controller/Installer/MIddlewares/IsEnvironmentReady.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller\Installer\Middleware; 14 | 15 | use Closure; 16 | use MagmaCore\Middleware\BeforeMiddleware; 17 | 18 | class IsEnvironmentReady extends BeforeMiddleware 19 | { 20 | 21 | /** 22 | * Prevent unauthorized access to the administration panel. Only users with specific 23 | * privileges can access the admin area. 24 | * 25 | * @param Object $middleware 26 | * @param Closure $next 27 | * @return void 28 | */ 29 | public function middleware(object $middleware, Closure $next) 30 | { 31 | return $next($middleware); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /App/Controller/LogoutController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller; 14 | 15 | class LogoutController extends \MagmaCore\UserManager\Security\LogoutController 16 | { } 17 | -------------------------------------------------------------------------------- /App/Controller/PasswordController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | declare(strict_types=1); 11 | 12 | namespace App\Controller; 13 | 14 | class PasswordController extends \MagmaCore\UserManager\PasswordRecovery\PasswordController 15 | { } -------------------------------------------------------------------------------- /App/Controller/RegistrationController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller; 14 | 15 | class RegistrationController extends \MagmaCore\UserManager\Registration\RegistrationController 16 | { } 17 | -------------------------------------------------------------------------------- /App/Controller/SecurityController.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Controller; 14 | 15 | class SecurityController extends \MagmaCore\UserManager\Security\SecurityController 16 | { } 17 | -------------------------------------------------------------------------------- /App/Entity/BranchEntity.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Entity; 14 | 15 | use MagmaCore\Base\BaseEntity; 16 | 17 | /** @todo try and access the schema object to fetch the database column dynamically */ 18 | class BranchEntity extends BaseEntity 19 | {} 20 | 21 | 22 | -------------------------------------------------------------------------------- /App/Entity/CategoryEntity.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Entity; 14 | 15 | use MagmaCore\Base\BaseEntity; 16 | 17 | /** @todo try and access the schema object to fetch the database column dynamically */ 18 | class CategoryEntity extends BaseEntity 19 | {} 20 | 21 | 22 | -------------------------------------------------------------------------------- /App/Entity/CostCenterEntity.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Entity; 14 | 15 | use MagmaCore\Base\BaseEntity; 16 | 17 | /** @todo try and access the schema object to fetch the database column dynamically */ 18 | class CostCenterEntity extends BaseEntity 19 | {} 20 | 21 | 22 | -------------------------------------------------------------------------------- /App/Entity/HolidayEntity.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Entity; 14 | 15 | use MagmaCore\Base\BaseEntity; 16 | 17 | /** @todo try and access the schema object to fetch the database column dynamically */ 18 | class HolidayEntity extends BaseEntity 19 | {} 20 | 21 | 22 | -------------------------------------------------------------------------------- /App/Entity/LeaveTypeEntity.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Entity; 14 | 15 | use MagmaCore\Base\BaseEntity; 16 | 17 | /** @todo try and access the schema object to fetch the database column dynamically */ 18 | class LeaveTypeEntity extends BaseEntity 19 | {} 20 | 21 | 22 | -------------------------------------------------------------------------------- /App/Entity/MessageEntity.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Entity; 14 | 15 | use MagmaCore\Base\BaseEntity; 16 | 17 | /** @todo try and access the schema object to fetch the database column dynamically */ 18 | class MessageEntity extends BaseEntity 19 | {} 20 | 21 | 22 | -------------------------------------------------------------------------------- /App/Entity/NotificationEntity.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Entity; 14 | 15 | use MagmaCore\Base\BaseEntity; 16 | 17 | /** @todo try and access the schema object to fetch the database column dynamically */ 18 | class NotificationEntity extends BaseEntity 19 | {} 20 | 21 | 22 | -------------------------------------------------------------------------------- /App/Entity/PostEntity.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | declare(strict_types=1); 11 | 12 | namespace App\Entity; 13 | 14 | use MagmaCore\Base\BaseEntity; 15 | 16 | class PostEntity extends BaseEntity 17 | {} -------------------------------------------------------------------------------- /App/Entity/ProjectEntity.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | declare(strict_types=1); 11 | 12 | namespace App\Entity; 13 | 14 | use MagmaCore\Base\BaseEntity; 15 | 16 | class ProjectEntity extends BaseEntity 17 | {} -------------------------------------------------------------------------------- /App/Entity/SearchEntity.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Entity; 14 | 15 | use MagmaCore\Base\BaseEntity; 16 | 17 | /** @todo try and access the schema object to fetch the database column dynamically */ 18 | class SearchEntity extends BaseEntity 19 | {} 20 | 21 | 22 | -------------------------------------------------------------------------------- /App/Entity/TagEntity.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Entity; 14 | 15 | use MagmaCore\Base\BaseEntity; 16 | 17 | /** @todo try and access the schema object to fetch the database column dynamically */ 18 | class TagEntity extends BaseEntity 19 | {} 20 | 21 | 22 | -------------------------------------------------------------------------------- /App/Entity/TimesheetEntity.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Entity; 14 | 15 | use MagmaCore\Base\BaseEntity; 16 | 17 | /** @todo try and access the schema object to fetch the database column dynamically */ 18 | class TimesheetEntity extends BaseEntity 19 | {} 20 | 21 | 22 | -------------------------------------------------------------------------------- /App/Entity/UserProfileEntity.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | declare(strict_types=1); 11 | 12 | namespace App\Entity; 13 | 14 | use MagmaCore\Base\BaseEntity; 15 | 16 | class UserProfileEntity extends BaseEntity 17 | {} -------------------------------------------------------------------------------- /App/Enums/Status.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Enums; 14 | 15 | use MagmaCore\Enums\Contracts\StatusInterface; 16 | 17 | /** 18 | * Strictly for PHP 8.1 onwards 19 | */ 20 | enum Status: string implements StatusInterface 21 | { 22 | 23 | case DRAFT = 'draft'; 24 | case PUBLISHED = 'published'; 25 | case ARCHIVED = 'archived'; 26 | 27 | public function color(): string 28 | { 29 | return match($this) { 30 | Status::DRAFT => 'grey', 31 | Status::PUBLISHED => 'green', 32 | Status::ARCHIVED => 'red' 33 | }; 34 | } 35 | 36 | } -------------------------------------------------------------------------------- /App/Event/BranchActionEvent.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Event; 14 | 15 | use MagmaCore\Base\BaseActionEvent; 16 | 17 | class BranchActionEvent extends BaseActionEvent 18 | { 19 | 20 | /** @var string - name of the event */ 21 | public const NAME = 'app.event.branch_action_event'; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /App/Event/CategoryActionEvent.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Event; 14 | 15 | use MagmaCore\Base\BaseActionEvent; 16 | 17 | class CategoryActionEvent extends BaseActionEvent 18 | { 19 | 20 | /** @var string - name of the event */ 21 | public const NAME = 'app.event.category_action_event'; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /App/Event/CostCenterActionEvent.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Event; 14 | 15 | use MagmaCore\Base\BaseActionEvent; 16 | 17 | class CostCenterActionEvent extends BaseActionEvent 18 | { 19 | 20 | /** @var string - name of the event */ 21 | public const NAME = 'app.event.costCenter_action_event'; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /App/Event/HolidayActionEvent.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Event; 14 | 15 | use MagmaCore\Base\BaseActionEvent; 16 | 17 | class HolidayActionEvent extends BaseActionEvent 18 | { 19 | 20 | /** @var string - name of the event */ 21 | public const NAME = 'app.event.holiday_action_event'; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /App/Event/LeaveTypeActionEvent.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Event; 14 | 15 | use MagmaCore\Base\BaseActionEvent; 16 | 17 | class LeaveTypeActionEvent extends BaseActionEvent 18 | { 19 | 20 | /** @var string - name of the event */ 21 | public const NAME = 'app.event.leave_type_action_event'; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /App/Event/MessageActionEvent.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Event; 14 | 15 | use MagmaCore\Base\BaseActionEvent; 16 | 17 | class MessageActionEvent extends BaseActionEvent 18 | { 19 | 20 | /** @var string - name of the event */ 21 | public const NAME = 'app.event.message_action_event'; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /App/Event/PostActionEvent.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Event; 14 | 15 | use MagmaCore\Base\BaseActionEvent; 16 | 17 | class PostActionEvent extends BaseActionEvent 18 | { 19 | 20 | /** @var string - name of the event */ 21 | public const NAME = 'app.event.post_action_event'; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /App/Event/ProjectActionEvent.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Event; 14 | 15 | use MagmaCore\Base\BaseActionEvent; 16 | 17 | class ProjectActionEvent extends BaseActionEvent 18 | { 19 | 20 | /** @var string - name of the event */ 21 | public const NAME = 'app.event.project_action_event'; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /App/Event/SearchActionEvent.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Event; 14 | 15 | use MagmaCore\Base\BaseActionEvent; 16 | 17 | class SearchActionEvent extends BaseActionEvent 18 | { 19 | 20 | /** @var string - name of the event */ 21 | public const NAME = 'app.event.search_action_event'; 22 | 23 | } 24 | 25 | -------------------------------------------------------------------------------- /App/Event/TagActionEvent.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Event; 14 | 15 | use MagmaCore\Base\BaseActionEvent; 16 | 17 | class TagActionEvent extends BaseActionEvent 18 | { 19 | 20 | /** @var string - name of the event */ 21 | public const NAME = 'app.event.tag_action_event'; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /App/Event/TimesheetActionEvent.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Event; 14 | 15 | use MagmaCore\Base\BaseActionEvent; 16 | 17 | class TimesheetActionEvent extends BaseActionEvent 18 | { 19 | 20 | /** @var string - name of the event */ 21 | public const NAME = 'app.event.timesheet_action_event'; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /App/Event/UserProfileActionEvent.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Event; 14 | 15 | use MagmaCore\Base\BaseActionEvent; 16 | 17 | class UserProfileActionEvent extends BaseActionEvent 18 | { 19 | 20 | /** @var string - name of the event */ 21 | public const NAME = 'app.event.userprofile_action_event'; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /App/EventListener/PostActionSubscriber.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/EventListener/PostActionSubscriber.php -------------------------------------------------------------------------------- /App/Forms/Admin/User/BulkDeleteForm.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Forms\Admin\User; 14 | 15 | use Exception; 16 | use MagmaCore\FormBuilder\ClientFormBuilder; 17 | use MagmaCore\FormBuilder\ClientFormBuilderInterface; 18 | use MagmaCore\FormBuilder\Type\RadioType; 19 | 20 | class BulkDeleteForm extends ClientFormBuilder implements ClientFormBuilderInterface 21 | { 22 | 23 | /** 24 | * @param string $action 25 | * @param object|null $dataRepository 26 | * @param object|null $callingController 27 | * @return string 28 | * @throws Exception 29 | */ 30 | public function createForm(string $action, ?object $dataRepository = null, ?object $callingController = null): string 31 | { 32 | if ($dataRepository != null) { 33 | $dataRepository = (array)$dataRepository; 34 | extract($dataRepository); 35 | } 36 | return ''; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /App/Middleware/After/SessionExpiresCleanUp.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Middleware\Before; 14 | 15 | use Closure; 16 | use MagmaCore\Middleware\BeforeMiddleware; 17 | 18 | class HasEnv extends BeforeMiddleware 19 | { 20 | 21 | /** 22 | * Prevent unauthorized access to the administration panel. Only users with specific 23 | * privileges can access the admin area. 24 | * 25 | * @param Object $middleware 26 | * @param Closure $next 27 | * @return void 28 | */ 29 | public function middleware(object $middleware, Closure $next) 30 | { 31 | if (!file_exists(APP_ROOT . '/.env.lip')) { 32 | $middleware->error?->addError(['missing_env' => 'Error locating the system .env file.'], $middleware)->dispatchError(); 33 | } 34 | return $next($middleware); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /App/Middleware/Before/InitializeSettings.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | declare(strict_types=1); 11 | 12 | namespace App\Middleware\Before; 13 | 14 | use Closure; 15 | use MagmaCore\Middleware\BeforeMiddleware; 16 | 17 | class InitializeSettings extends BeforeMiddleware 18 | { 19 | 20 | /** 21 | * Undocumented function 22 | * 23 | * @param Object $middleware - contains the BaseController object 24 | * @param Closure $next 25 | * @return void 26 | */ 27 | public function middleware(object $middleware, Closure $next) 28 | { 29 | $middleware->tableSettingsInsertAction($middleware->thisRouteController()); 30 | return $next($middleware); 31 | } 32 | 33 | } -------------------------------------------------------------------------------- /App/Middleware/Before/IntegrityConstraints.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | declare(strict_types=1); 11 | 12 | namespace App\Middleware\Before; 13 | 14 | use Closure; 15 | use MagmaCore\Middleware\BeforeMiddleware; 16 | 17 | class IntegrityConstraints extends BeforeMiddleware 18 | { 19 | 20 | /** 21 | * Undocumented function 22 | * 23 | * @param Object $middleware - contains the BaseController object 24 | * @param Closure $next 25 | * @return void 26 | */ 27 | public function middleware(object $middleware, Closure $next) 28 | { 29 | var_dump($middleware); 30 | die; 31 | } 32 | 33 | } -------------------------------------------------------------------------------- /App/Middleware/Before/PreventionActions.php: -------------------------------------------------------------------------------- 1 | thisRouteAction() === 'delete') { 26 | if ($guards = (new RoleModel())->guardedID()) { 27 | if (is_array($guards) && count($guards) > 0) { 28 | foreach ($guards as $guard) { 29 | if ($middleware->toInt($guard) === $middleware->toInt($middleware->thisRouteID())) { 30 | $middleware->flashMessage('Deleting guarded actions is not allowed.
You will need to guard first before you perform that action. click here to find out how to. ', $middleware->flashInfo()); 31 | $middleware->redirect('/admin/role/index'); 32 | } 33 | } 34 | } 35 | } 36 | } 37 | 38 | return $next($middleware); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /App/Middleware/Before/isAlreadyLogin.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | declare(strict_types=1); 11 | 12 | namespace App\Middleware\Before; 13 | 14 | use Closure; 15 | use MagmaCore\Auth\Authorized; 16 | use MagmaCore\Middleware\BeforeMiddleware; 17 | 18 | class isAlreadyLogin extends BeforeMiddleware 19 | { 20 | 21 | /** 22 | * Prevent access to the login form is the user is already logged. 23 | * as this action doesn't need doing again 24 | * 25 | * @param object $middleware - contains the BaseController object 26 | * @param closure $next 27 | * @return void 28 | */ 29 | public function middleware(object $middleware, Closure $next) 30 | { 31 | if ( 32 | $middleware->thisRouteController() === 'security' && 33 | $middleware->thisRouteAction() === 'index') { 34 | $userID = $middleware->getSession()->get('user_id'); 35 | if (isset($userID) && $userID !== 0) { 36 | $middleware->flashMessage(sprintf('%s You are already logged in.', 'Action Rejected: '), $middleware->flashInfo()); 37 | $middleware->redirect(Authorized::getReturnToPage()); 38 | } 39 | } 40 | return $next($middleware); 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /App/Modules/LeaveTypeModule/Event/LeaveTypeActionEvent.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Modules\LeaveTypeModule\Event; 14 | 15 | use MagmaCore\Base\BaseActionEvent; 16 | 17 | class LeaveTypeActionEvent extends BaseActionEvent 18 | { 19 | 20 | /** @var string - name of the event */ 21 | public const NAME = 'app.event.leave_type_action_event'; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /App/Modules/LeaveTypeModule/LeaveTypeColumn.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Modules/LeaveTypeModule/LeaveTypeColumn.php -------------------------------------------------------------------------------- /App/Modules/LeaveTypeModule/LeaveTypeCommander.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Modules/LeaveTypeModule/LeaveTypeCommander.php -------------------------------------------------------------------------------- /App/Modules/LeaveTypeModule/LeaveTypeController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Modules/LeaveTypeModule/LeaveTypeController.php -------------------------------------------------------------------------------- /App/Modules/LeaveTypeModule/LeaveTypeEntity.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Modules/LeaveTypeModule/LeaveTypeEntity.php -------------------------------------------------------------------------------- /App/Modules/LeaveTypeModule/LeaveTypeModel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Modules/LeaveTypeModule/LeaveTypeModel.php -------------------------------------------------------------------------------- /App/Modules/LeaveTypeModule/LeaveTypeSchema.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Modules/LeaveTypeModule/LeaveTypeSchema.php -------------------------------------------------------------------------------- /App/Modules/LeaveTypeModule/LeaveTypeValidate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Modules/LeaveTypeModule/LeaveTypeValidate.php -------------------------------------------------------------------------------- /App/Modules/LeaveTypeModule/events.yml: -------------------------------------------------------------------------------- 1 | leaveType.subscriber: 2 | class: \App\Modules\LeaveTypeModule\EventSubscriber\leaveTypeActionSubscriber 3 | register_route_feedback: 4 | App\Controller\Admin\leaveTypeController::newAction: 5 | msg: New category added successfully! 6 | redirect: category.new 7 | App\Controller\Admin\leaveTypeController::editAction: 8 | msg: Changes saved! 9 | App\Controller\Admin\leaveTypeController::trashAction: 10 | msg: Item thrown in the trash! 11 | App\Controller\Admin\leaveTypeController::untrashAction: 12 | msg: Category restored from trash! 13 | redirect: category.index 14 | App\Controller\Admin\leaveTypeController::hardDeleteAction: 15 | msg: Category permanently deleted! 16 | redirect: category.index 17 | -------------------------------------------------------------------------------- /App/Modules/LeaveTypeModule/module.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Modules/LeaveTypeModule/module.yml -------------------------------------------------------------------------------- /App/Repository/PostRepository.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Repository; 14 | 15 | class PostRepository 16 | { 17 | } 18 | -------------------------------------------------------------------------------- /App/Schema/Change/ChangeStatus_TestSchema.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Schema\Change; 14 | 15 | class ChangeStatus_TestSchema extends TestSchema 16 | { 17 | /** 18 | * @return string 19 | */ 20 | public function createSchema(): string 21 | { 22 | return $this->schema 23 | ->table($this->testModel) 24 | ->alter('change', function ($schema) { 25 | return $schema 26 | ->row($this->blueprint->varchar('status', 65, false)) 27 | ->changeColumn('test_status'); 28 | }); 29 | 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /App/Schema/Change/ModifyStatus_TestSchema.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | namespace App\Schema\Change; 14 | 15 | class ModifyStatus_TestSchema extends TestSchema 16 | { 17 | 18 | /** 19 | * @return string 20 | */ 21 | public function createSchema(): string 22 | { 23 | return $this->schema 24 | ->table($this->testModel) 25 | ->alter('modify', function ($schema) { 26 | return $schema 27 | ->row($this->blueprint->longText('status')) 28 | ->modifyColumn(); 29 | }); 30 | 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /App/Templates/_global/_block_content.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | {% if ($current_user !==null) : %} {@ templateExtension('uikit_commander_bar') @} {% endif; %} 5 |
6 |
7 | 8 |
9 |
10 | {@ templateExtension('uikit_flash_message') @} 11 |
12 | 13 |
14 |
15 | {% yield content %} 16 |
17 |
18 |
19 | {% include '_global/_block_footer.html' %} 20 |
-------------------------------------------------------------------------------- /App/Templates/_global/_block_footer.html: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /App/Templates/_global/_block_header.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | 14 |
15 |
-------------------------------------------------------------------------------- /App/Templates/_global/_block_sidebar.html: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /App/Templates/_global/_block_sidebar_bottom_nav.html: -------------------------------------------------------------------------------- 1 |
2 | 20 |
21 | -------------------------------------------------------------------------------- /App/Templates/admin/_global/_global_datatable.html: -------------------------------------------------------------------------------- 1 | {% if ($total_records > 0) : %} 2 | {{ $table }} 3 | {% else : %} 4 | {% include 'admin/_global/_global_no_records.html' %} 5 | {% endif; %} 6 | -------------------------------------------------------------------------------- /App/Templates/admin/accessDenied/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Access Denied{% endblock %} 3 | {% block description %}MagmaCore create an account{% endblock %} 4 | {% block keywords %}access denied{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | {% block styles %}{% endblock %} 7 | 8 | {% block content %} 9 |
10 |
11 |
12 |
13 |
14 |
15 | {@ icon('warning', 3.5) @} 16 |
17 |
18 |

403 Permission Denied

19 |

20 | You do not have enough privilege to access the queried object. Or perform the requested operation. For more information, please contact your application CMS Administrator. request temporary permission 21 |

22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/branch/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Branches{% endblock %} 3 | {% block description %}MagmaCore branches{% endblock %} 4 | {% block keywords %}Branches{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | 7 | 8 | {% block content %} 9 |
10 | {@ templateExtension('uikit_simple_pagination') @} 11 |
12 |
13 |
14 |
15 |
16 | {% include 'admin/_global/_global_datatable.html' %} 17 |
18 |
19 | {@ templateExtension('uikit_pagination') @} 20 |
21 |
22 |
23 |
24 | {% endblock %} 25 | 26 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/branch/new.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Create Branch{% endblock %} 3 | {% block description %}MagmaCore create new branch{% endblock %} 4 | {% block keywords %}new-branch, create-new{% endblock %} 5 | 6 | {% block content %} 7 |
8 |
9 |
10 |
11 |
12 | {{ $form }} 13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | 23 | 24 |
25 |
26 |
27 | 28 |
29 | 30 | {% endblock %} 31 | 32 | {% block scripts %}{% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/branch/settings.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Branch Settings{% endblock %} 3 | {% block description %}MagmaCore Branch Settings{% endblock %} 4 | {% block keywords %}branch-settings{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | {% block styles %} {% endblock %} 7 | 8 | 9 | {% block content %} 10 | {% include 'admin/_global/_global_page_settings.html' %} 11 | {% endblock %} 12 | 13 | 14 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/bulk_action/bulk.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Bulk Action{% endblock %} 3 | {% block description %}MagmaCore bulk action users{% endblock %} 4 | {% block keywords %}bulk-action{% endblock %} 5 | 6 | {% block content %} 7 |
8 | 9 |
10 |
11 |
12 |
13 | {% include 'admin/user/view_bulk_actions.html' %} 14 |
15 |
16 |
17 |
18 |
19 | {% endblock %} 20 | 21 | {% block scripts %}{% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/category/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Categories{% endblock %} 3 | {% block description %}MagmaCore categories{% endblock %} 4 | {% block keywords %}category{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | 7 | 8 | {% block content %} 9 |
10 | {@ templateExtension('uikit_simple_pagination') @} 11 |
12 |
13 |
14 |
15 |
16 | {% include 'admin/_global/_global_datatable.html' %} 17 |
18 |
19 | {@ templateExtension('uikit_pagination') @} 20 |
21 |
22 |
23 |
24 | {% endblock %} 25 | 26 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/category/new.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Create Category{% endblock %} 3 | {% block description %}MagmaCore create new category{% endblock %} 4 | {% block keywords %}new-category, create-new{% endblock %} 5 | 6 | {% block content %} 7 |
8 |
9 |
10 |
11 |
12 | {{ $form }} 13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |

What are Categories?

21 |

Roles are a group of permission. Which can be assigned to multiple users within. Roles can have an unlimited amount of permissions. Permissions that can be added and remove at any point. 22 |

23 | 24 |
25 |
26 |
27 | 28 |
29 | 30 | {% endblock %} 31 | 32 | {% block scripts %}{% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/category/settings.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}category Settings{% endblock %} 3 | {% block description %}MagmaCore category Settings{% endblock %} 4 | {% block keywords %}category-settings{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | {% block styles %} {% endblock %} 7 | 8 | 9 | {% block content %} 10 | {% include 'admin/_global/_global_page_settings.html' %} 11 | {% endblock %} 12 | 13 | 14 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/costCenter/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Cost Center{% endblock %} 3 | {% block description %}MagmaCore cost center{% endblock %} 4 | {% block keywords %}cost center{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | 7 | 8 | {% block content %} 9 |
10 | {@ templateExtension('uikit_simple_pagination') @} 11 |
12 |
13 |
14 |
15 |
16 | {% include 'admin/_global/_global_datatable.html' %} 17 |
18 |
19 | {@ templateExtension('uikit_pagination') @} 20 |
21 |
22 |
23 |
24 | {% endblock %} 25 | 26 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/costCenter/new.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Create Cost Center{% endblock %} 3 | {% block description %}MagmaCore create new cost center{% endblock %} 4 | {% block keywords %}new-cost-center, create-new{% endblock %} 5 | 6 | {% block content %} 7 |
8 |
9 |
10 |
11 |
12 | {{ $form }} 13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | 23 | 24 |
25 |
26 |
27 | 28 |
29 | 30 | {% endblock %} 31 | 32 | {% block scripts %}{% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/costCenter/settings.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Cost Center Type Settings{% endblock %} 3 | {% block description %}MagmaCore Cost Center Type Settings{% endblock %} 4 | {% block keywords %}cost-center-type-settings{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | {% block styles %} {% endblock %} 7 | 8 | 9 | {% block content %} 10 | {% include 'admin/_global/_global_page_settings.html' %} 11 | {% endblock %} 12 | 13 | 14 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/dashboard/_parts/dashboard_interactive_heading.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |

Job Board

5 |
6 | 7 | 15 |
16 |
-------------------------------------------------------------------------------- /App/Templates/admin/dashboard/_parts/display_table.html: -------------------------------------------------------------------------------- 1 |

Recent Activities

2 | 3 |
4 |
5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
Table HeadingTable HeadingTable Heading
Table DataLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Table DataLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
27 |
28 |
29 |
-------------------------------------------------------------------------------- /App/Templates/admin/dashboard/_parts/news_block.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
Badge
5 |

Latest News

6 |
7 |

Lorem ipsum color sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

8 |
9 |
10 |
11 |
12 |
Badge
13 |

Title

14 |
15 |

Lorem ipsum color sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

16 |
17 |
18 | 19 |
-------------------------------------------------------------------------------- /App/Templates/admin/dashboard/_parts/statistics_cards.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | {@ getWidget('users_widget', 'users', 'id') @} 4 |
5 |
6 | {@ getWidget('total_visit_widget', 'users', 'id') @} 7 |
8 |
9 |
10 |
11 | {@ getWidget('progress_bar_widget', '', '', $progress_bar_data) @} 12 |
13 |
14 |
15 | 16 |
-------------------------------------------------------------------------------- /App/Templates/admin/dashboard/block_health_status.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | {% include 'admin/dashboard/health/healthy.html' %} 4 |
5 | {@ getWidget('system_logger_widget') @} 6 |
7 |
8 |
-------------------------------------------------------------------------------- /App/Templates/admin/dashboard/block_main.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | {@ getWidget('member_widget', 'users', 'id') @} 5 |
6 |
7 | {@ getWidget('lists_widget', null, null, $main_cards) @} 8 |
9 |
10 |
-------------------------------------------------------------------------------- /App/Templates/admin/dashboard/block_ticket.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | {@ getWidget('ticket_widget', 'tickets', 'id') @} 5 |
6 |
7 | {@ getWidget('backup_status_widget', 'updates', 'id') @} 8 |
9 |
10 |
-------------------------------------------------------------------------------- /App/Templates/admin/dashboard/health/error_warning.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 |
6 | {@ icon('bolt', 3.5) @} 7 |
8 |
9 |

Error/Warning

10 |

11 | 12 |

13 |
14 |
15 |
16 |
17 |

The total number of sessions within the date range. It is the period time a user is actively engaged with your website, page or app, etc.

18 |
19 |
20 |
-------------------------------------------------------------------------------- /App/Templates/admin/dashboard/health/healthy.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 |
6 | {@ icon('happy', 3.5) @} 7 |
8 |
9 |

Healthly

10 |

11 | 12 |

13 |
14 |
15 |
16 |
17 |

The total number of sessions within the date range. It is the period time a user is actively engaged with your website, page or app, etc.

18 |
19 |
20 |
-------------------------------------------------------------------------------- /App/Templates/admin/dashboard/nav_switcher.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /App/Templates/admin/dashboard/offcanvas/dashboard_toggle.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | 4 | 5 | 6 |

Interactivity Panel

7 | 8 |

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

9 | 10 |
11 |
-------------------------------------------------------------------------------- /App/Templates/admin/discovery/_partials/controller_discovery_form.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | 4 |
Controllers can also be auto discovered by visiting any page within a route.
5 |
6 |
7 | -------------------------------------------------------------------------------- /App/Templates/admin/discovery/_partials/discovery_sidebar.html: -------------------------------------------------------------------------------- 1 | 29 | -------------------------------------------------------------------------------- /App/Templates/admin/group/edit.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Edit Group{% endblock %} 3 | {% block description %}MagmaCore edit group{% endblock %} 4 | {% block keywords %}edit-group{% endblock %} 5 | 6 | {% block content %} 7 |
8 |
9 |
10 |
11 |
12 | {{ $form }} 13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
{@ locale('last_updated') @}
22 |
23 | {% if (isset($group['modified_at']) && $group['modified_at'] !==null) : %} 24 | {@ formatDate($group['modified_at']) @} 25 | {% else : %} 26 | Never 27 | {% endif %} 28 |
29 |
{@ locale('created') @}
30 |
{@ formatDate($group['created_at']) @} 31 | Created by: {@ getAuthorByID($group['created_byid']) @} 32 |
33 |
{@ locale('qualified_roles') @}
34 |
35 |
36 |
37 |
38 |
39 | 40 |
41 | {% endblock %} 42 | 43 | {% block scripts %}{% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/group/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Groups{% endblock %} 3 | {% block description %}MagmaCore groups{% endblock %} 4 | {% block keywords %}Create groups for roles and permissions{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | 7 | {% block content %} 8 |
9 | {@ templateExtension('uikit_simple_pagination') @} 10 |
11 |
12 |
13 |
14 |
15 | {% include 'admin/_global/_global_datatable.html' %} 16 |
17 |
18 | {@ templateExtension('uikit_pagination') @} 19 |
20 |
21 |
22 |
23 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/group/new.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Create Group{% endblock %} 3 | {% block description %}MagmaCore create new group{% endblock %} 4 | {% block keywords %}new-group, create-new{% endblock %} 5 | 6 | {% block content %} 7 |
8 |
9 |
10 |
11 |
12 | {{ $form }} 13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |

What are Groups?

21 |

Roles are a group of permission. Which can be assigned to multiple users within. Roles can have an unlimited amount of permissions. Permissions that can be added and remove at any point. 22 |

23 | 24 |
25 |
26 |
27 | 28 |
29 | {% endblock %} 30 | 31 | {% block scripts %}{% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/group/settings.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Group Settings{% endblock %} 3 | {% block description %}MagmaCore group Settings{% endblock %} 4 | {% block keywords %}group-settings{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | {% block styles %} {% endblock %} 7 | 8 | {% block content %} 9 | {% include 'admin/_global/_global_page_settings.html' %} 10 | {% endblock %} 11 | 12 | 13 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/holiday/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Holidays{% endblock %} 3 | {% block description %}MagmaCore holiday{% endblock %} 4 | {% block keywords %}holidays{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | 7 | 8 | {% block content %} 9 |
10 | {@ templateExtension('uikit_simple_pagination') @} 11 |
12 |
13 |
14 |
15 |
16 | {% include 'admin/_global/_global_datatable.html' %} 17 |
18 |
19 | {@ templateExtension('uikit_pagination') @} 20 |
21 |
22 |
23 |
24 | {% endblock %} 25 | 26 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/holiday/new.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Create Holiday{% endblock %} 3 | {% block description %}MagmaCore create new holiday{% endblock %} 4 | {% block keywords %}new-holiday, create-new{% endblock %} 5 | 6 | {% block content %} 7 |
8 |
9 |
10 |
11 |
12 | {{ $form }} 13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | 23 | 24 |
25 |
26 |
27 | 28 |
29 | 30 | {% endblock %} 31 | 32 | {% block scripts %}{% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/holiday/settings.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Holiday Type Settings{% endblock %} 3 | {% block description %}MagmaCore Holiday Type Settings{% endblock %} 4 | {% block keywords %}holiday-type-settings{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | {% block styles %} {% endblock %} 7 | 8 | 9 | {% block content %} 10 | {% include 'admin/_global/_global_page_settings.html' %} 11 | {% endblock %} 12 | 13 | 14 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/leave/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Leaves{% endblock %} 3 | {% block description %}MagmaCore categories{% endblock %} 4 | {% block keywords %}leaves{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | 7 | 8 | {% block content %} 9 |
10 | {@ templateExtension('uikit_simple_pagination') @} 11 |
12 |
13 |
14 |
15 |
16 | {% include 'admin/_global/_global_datatable.html' %} 17 |
18 |
19 | {@ templateExtension('uikit_pagination') @} 20 |
21 |
22 |
23 |
24 | {% endblock %} 25 | 26 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/leave/new.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Create Leave Type{% endblock %} 3 | {% block description %}MagmaCore create new leave type{% endblock %} 4 | {% block keywords %}new-leave-type, create-new{% endblock %} 5 | 6 | {% block content %} 7 |
8 |
9 |
10 |
11 |
12 | {{ $form }} 13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | 23 | 24 |
25 |
26 |
27 | 28 |
29 | 30 | {% endblock %} 31 | 32 | {% block scripts %}{% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/leave/settings.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Levae Type Settings{% endblock %} 3 | {% block description %}MagmaCore leave Type Settings{% endblock %} 4 | {% block keywords %}leave-type-settings{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | {% block styles %} {% endblock %} 7 | 8 | {% block content %} 9 | {% include 'admin/_global/_global_page_settings.html' %} 10 | {% endblock %} 11 | 12 | 13 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/menu/_partials/order_body.html: -------------------------------------------------------------------------------- 1 |
2 | 3 |

{{ $menu_item['menu_name'] }}

4 |

Menu Order {{ $menu_item['menu_order'] ?? null }}

5 |

Created By Super User{@ formatDate($menu_item['created_at']) @} 6 | MenuController

7 | 8 |

{{ $menu_item['menu_description'] }}

9 | 10 |
11 |
12 | Read more 13 |
14 |
15 | 5 Comments 16 |
17 |
18 | 19 |
-------------------------------------------------------------------------------- /App/Templates/admin/menu/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Menu{% endblock %} 3 | {% block description %}MagmaCore menus{% endblock %} 4 | {% block keywords %}menu, menu-items{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | 7 | {% block content %} 8 |
9 |
10 | {@ templateExtension('uikit_simple_pagination') @} 11 | 12 |
13 |
14 |
15 |
16 | {% include 'admin/_global/_global_datatable.html' %} 17 |
18 |
19 | {@ templateExtension('uikit_pagination') @} 20 |
21 |
22 |
23 |
24 | {% endblock %} 25 | 26 | {% block scripts %} 27 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/menu/new.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Add New Menu{% endblock %} 3 | {% block description %}MagmaCore add menu{% endblock %} 4 | {% block keywords %}add-menu{% endblock %} 5 | 6 | 7 | {% block content %} 8 |
9 |
10 |
11 |
12 |
13 | {{ $form }} 14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | 23 |
24 | 25 |
26 |
27 |
28 |
29 | {% endblock %} 30 | 31 | {% block scripts %} {% endblock %} 32 | -------------------------------------------------------------------------------- /App/Templates/admin/menu/order.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Menu Order{% endblock %} 3 | {% block description %}MagmaCore edit menu order{% endblock %} 4 | {% block keywords %}edit-menu-order{% endblock %} 5 | 6 | {% block content %} 7 |
8 |
9 |
10 |
11 | 19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | {% include 'admin/menu/_partials/order_body.html' %} 27 |
28 |
29 |
30 |
31 |
32 | 33 | {% endblock %} 34 | 35 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/menu/settings.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Menu Settings{% endblock %} 3 | {% block description %}MagmaCore menu Settings{% endblock %} 4 | {% block keywords %}menu-settings{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | {% block styles %} {% endblock %} 7 | 8 | 9 | {% block content %} 10 | {% include 'admin/_global/_global_page_settings.html' %} 11 | {% endblock %} 12 | 13 | 14 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/message/_partials/sidebar.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | Compose 4 |

5 | 6 | 14 |
15 |
16 | 17 | -------------------------------------------------------------------------------- /App/Templates/admin/message/forward.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Templates/admin/message/forward.html -------------------------------------------------------------------------------- /App/Templates/admin/message/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Message{% endblock %} 3 | {% block description %}Internal messaging system{% endblock %} 4 | {% block keywords %}{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | 7 | 8 | {% block content %} 9 |
10 |
11 |
12 | {% include 'admin/message/_partials/sidebar.html' %} 13 |
14 |
15 | 16 |
17 | {@ templateExtension('uikit_simple_pagination') @} 18 |
19 |
20 |
21 | {% include 'admin/_global/_global_datatable.html' %} 22 |
23 |
24 | {@ templateExtension('uikit_pagination') @} 25 |
26 |
27 |
28 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/message/new.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} {% block title %}New Message{% endblock %} {% block description %}MagmaCore edit an account{% endblock %} {% block keywords %}show-account, show-user{% endblock %} {% block author %}Ricardo Miller{% endblock %} {% block content%} 2 |
3 |
4 |
5 | {% include 'admin/message/_partials/sidebar.html' %} 6 |
7 |
8 | 9 |
10 |
11 |
12 | {{ $form }} 13 |
14 |
15 |
16 | 17 |
18 | 19 | 20 | {% endblock %} 21 | 22 | {% block scripts %} 23 | 29 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/message/reply.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} {% block title %}Reply{% endblock %} {% block description %}MagmaCore edit an account{% endblock %} {% block keywords %}reply{% endblock %} {% block author %}Ricardo Miller{% endblock %} {% block content%} 2 |
3 |
4 |
5 | {% include 'admin/message/_partials/sidebar.html' %} 6 |
7 |
8 | 9 |
10 |
11 |
12 | {{ $form }} 13 |
14 |
15 |
16 | 17 |
18 | 19 | 20 | {% endblock %} 21 | 22 | {% block scripts %} 23 | 29 | 30 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/message/settings.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | 3 | {% block title %}Message Settings{% endblock %} 4 | 5 | {% block description %}MagmaCore message Settings{% endblock %} 6 | 7 | {% block keywords %}message-settings{% endblock %} 8 | 9 | {% block author %}Ricardo Miller{% endblock %} 10 | 11 | {% block styles %} {% endblock %} 12 | 13 | {% block content %} 14 | 15 | {% include 'admin/common_settings.html' %} 16 | 17 | {% endblock %} 18 | 19 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/message/show.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} {% block title %}{% endblock %} {% block description %}MagmaCore edit an account{% endblock %} {% block keywords %}show-account, show-user{% endblock %} {% block author %}Ricardo Miller{% endblock %} {% block content%} 2 |
3 |
4 |
5 | {% include 'admin/message/_partials/sidebar.html' %} 6 |
7 |
8 | 9 |
10 |
11 |
12 | {% include 'admin/message/_partials/show_profile.html' %} {{ $form }} 13 |
14 |
15 |
16 | 17 |
18 | 19 | 20 | {% endblock %} 21 | 22 | {% block scripts %} 23 | 29 | 30 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/notification/settings.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | 3 | {% block title %}Notification Settings{% endblock %} 4 | 5 | {% block description %}MagmaCore notification Settings{% endblock %} 6 | 7 | {% block keywords %}notification-settings{% endblock %} 8 | 9 | {% block author %}Ricardo Miller{% endblock %} 10 | 11 | {% block styles %} {% endblock %} 12 | 13 | {% block content %} 14 | 15 | {% include 'admin/common_settings.html' %} 16 | 17 | {% endblock %} 18 | 19 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/permission/bulk.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} {% block title %}Bulk Action{% endblock %} {% block description %}MagmaCore bulk action permissions{% endblock %} {% block keywords %}bulk-action{% endblock %} {% block content %} 2 |
3 | 4 |
5 |
6 |
7 |
8 | {% include /admin/permission/view_bulk_actions.html %} 9 |
10 |
11 |
12 |
13 |
14 | 15 | {% endblock %} 16 | 17 | {% block js %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/permission/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Permission{% endblock %} 3 | {% block description %}MagmaCore create permissions{% endblock %} 4 | {% block keywords %}{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | 7 | 8 | {% block content %} 9 |
10 | {@ templateExtension('uikit_simple_pagination') @} 11 | 12 |
13 |
14 |
15 |
16 |
17 | {% include 'admin/_global/_global_datatable.html' %} 18 |
19 |
20 | {@ templateExtension('uikit_pagination') @} 21 |
22 |
23 |
24 | 25 |
26 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/permission/settings.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Permission Settings{% endblock %} 3 | {% block description %}MagmaCore permission Settings{% endblock %} 4 | {% block keywords %}permission-settings{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | {% block styles %} {% endblock %} 7 | 8 | 9 | {% block content %} 10 | {% include 'admin/_global/_global_page_settings.html' %} 11 | {% endblock %} 12 | 13 | 14 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/plugin/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Plugins{% endblock %} 3 | {% block description %}MagmaCore Plugins{% endblock %} 4 | {% block keywords %}plugins{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | {% block styles %} {% endblock %} 7 | 8 | {% block content %} 9 |
10 |
11 |
12 |
13 |
14 |
    15 |
  • Options
  • 16 | {% foreach(['activated', 'deactivated', 'trash'] as $option) : %} 17 |
  • {{ $option }}
  • 18 | {% endforeach; %} 19 |
20 | 21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 | {% endblock %} 29 | 30 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/post/_partials/page_nav.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /App/Templates/admin/post/_partials/sidebar.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | Write 5 | 6 | {% if ($post['id']) : %} 7 | 8 | {@ icon('trash', 1.2) @} 9 | {% endif; %} 10 | 11 |
12 |

13 | 14 | {{ $form_sidebar }} 15 | 16 | {% if ($post['id']) : %} 17 | 25 | {% endif; %} 26 |
27 |
-------------------------------------------------------------------------------- /App/Templates/admin/post/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | 3 | {% block title %}Post Listings{% endblock %} 4 | 5 | {% block description %}MagmaCore creat a post{% endblock %} 6 | 7 | {% block keywords %}{% endblock %} 8 | 9 | {% block content %} 10 | 11 |
12 |
13 | {@ templateExtension('uikit_simple_pagination') @} 14 |
15 |
16 |
17 |
18 | {% include 'admin/_global/_global_datatable.html' %} 19 |
20 |
21 |
22 |
23 | {@ templateExtension('uikit_pagination') @} 24 |
25 | 26 |
27 | 28 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/post/settings.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | 3 | {% block title %}Post Settings{% endblock %} 4 | 5 | {% block description %}MagmaCore Post Settings{% endblock %} 6 | 7 | {% block keywords %}post-settings{% endblock %} 8 | 9 | {% block author %}Ricardo Miller{% endblock %} 10 | 11 | {% block styles %} {% endblock %} 12 | 13 | {% block content %} 14 | 15 | {% include 'admin/common_settings.html' %} 16 | 17 | {% endblock %} 18 | 19 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/project/edit.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | 3 | {% block title %}Edit Project{% endblock %} 4 | {% block description %}MagmaCore edit project{% endblock %} 5 | {% block keywords %}edit-project, edit{% endblock %} 6 | 7 | 8 | {% block content %} 9 |
10 |
11 |
12 |
13 |
14 | {{ $form }} 15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | 28 |
29 |
30 |
31 | 32 | 33 |
34 | 35 | {% endblock %} 36 | 37 | {% block scripts %} {% endblock %} 38 | -------------------------------------------------------------------------------- /App/Templates/admin/project/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Projects{% endblock %} 3 | {% block description %}MagmaCore projects{% endblock %} 4 | {% block keywords %}projects{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | 7 | 8 | {% block content %} 9 |
10 | {@ templateExtension('uikit_simple_pagination') @} 11 |
12 |
13 |
14 |
15 |
16 | {% include 'admin/_global/_global_datatable.html' %} 17 |
18 |
19 | {@ templateExtension('uikit_pagination') @} 20 |
21 |
22 |
23 |
24 | {% endblock %} 25 | 26 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/project/new.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | 3 | {% block title %}Create New Project{% endblock %} 4 | {% block description %}MagmaCore create a project{% endblock %} 5 | {% block keywords %}new-project, create-new{% endblock %} 6 | 7 | 8 | {% block content %} 9 |
10 |
11 |
12 |
13 |
14 | {{ $form }} 15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | 28 |
29 |
30 |
31 | 32 | 33 |
34 | 35 | {% endblock %} 36 | 37 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/role/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Roles{% endblock %} 3 | {% block description %}MagmaCore roles{% endblock %} 4 | {% block keywords %}register, create an account{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | 7 | {% block content %} 8 |
9 | {@ templateExtension('uikit_simple_pagination') @} 10 |
11 |
12 |
13 |
14 |
15 | {% include 'admin/_global/_global_datatable.html' %} 16 |
17 |
18 | {@ templateExtension('uikit_pagination') @} 19 |
20 |
21 |
22 | 23 |
24 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/role/log.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Role Log{% endblock %} 3 | {% block description %}MagmaCore role log{% endblock %} 4 | {% block keywords %}register, create an account{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | 7 | {% block content %} 8 |
9 |
10 |
11 |
12 |
13 |
14 | {{ $table }} 15 |
16 |
17 | {@ templateExtension('uikit_pagination') @} 18 |
19 |
20 |
21 | 22 |
23 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/role/new.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Create Role{% endblock %} 3 | {% block description %}MagmaCore create new role{% endblock %} 4 | {% block keywords %}new-role, create-new{% endblock %} 5 | 6 | {% block content %} 7 |
8 |
9 |
10 |
11 |
12 | {{ $form }} 13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |

What are Roles?

21 |

Roles are a group of permission. Which can be assigned to multiple users within. Roles can have an unlimited amount of permissions. Permissions that can be added and remove at any point. 22 |

23 | 24 |
25 |
26 |
27 | 28 |
29 | {% endblock %} 30 | 31 | {% block scripts %}{% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/role/role_permissions.html: -------------------------------------------------------------------------------- 1 |
2 | {% if (isset($permissions)) : %} 3 | 12 | {% endif; %} 13 |
-------------------------------------------------------------------------------- /App/Templates/admin/role/settings.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Role Settings{% endblock %} 3 | {% block description %}MagmaCore role Settings{% endblock %} 4 | {% block keywords %}role-settings{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | {% block styles %} {% endblock %} 7 | 8 | {% block content %} 9 | {% include 'admin/_global/_global_page_settings.html' %} 10 | {% endblock %} 11 | 12 | 13 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/search/search.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} {% block title %}Global Search{% endblock %} {% block description %}MagmaCore edit role{% endblock %} {% block keywords %}edit-role{% endblock %} 2 | 3 | 4 | {% block content %} 5 |
6 |
7 |
8 |
9 |
10 | {{ $form }} 11 |
12 |
13 |
14 |
15 | 16 |
17 | 18 | {% endblock %} 19 | 20 | {% block scripts %} 21 | 23 | 24 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/setting/_parts/add_button.html: -------------------------------------------------------------------------------- 1 | Add -------------------------------------------------------------------------------- /App/Templates/admin/setting/_parts/application.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /App/Templates/admin/setting/_parts/general.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /App/Templates/admin/setting/_parts/go_back.html: -------------------------------------------------------------------------------- 1 | {@ icon('arrow-left', 1) @} -------------------------------------------------------------------------------- /App/Templates/admin/setting/_parts/restore.html: -------------------------------------------------------------------------------- 1 | Restore -------------------------------------------------------------------------------- /App/Templates/admin/setting/_parts/services.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /App/Templates/admin/setting/_parts/system_report.html: -------------------------------------------------------------------------------- 1 | 2 |

MagmaCore System Report

3 |
4 | 5 |
6 |

Please include this information when requesting support:

7 |

Get System Report

8 |
9 |
10 | 11 | 12 | 13 | 14 | 15 | {% foreach ($system_report['core'] as $coreKey => $coreValue) : %} 16 | 17 | 18 | 19 | 20 | {% endforeach; %} 21 | 22 | 23 | 24 | 25 | 26 | {% foreach ($system_report['php'] as $phpKey => $phpValue) : %} 27 | 28 | 29 | 30 | 31 | {% endforeach; %} 32 | 33 |
MagmaCore(CMS) System Report
{% echo str_replace('_', ' ', ucwords($coreKey)) %}{{ $coreValue }}
PHP/MySQL System Report
{% echo str_replace('_', ' ', ucwords($phpKey)) %}{{ $phpValue }}
-------------------------------------------------------------------------------- /App/Templates/admin/setting/_parts/update.html: -------------------------------------------------------------------------------- 1 | update -------------------------------------------------------------------------------- /App/Templates/admin/support/_partials/changelog_sidebar.html: -------------------------------------------------------------------------------- 1 | 24 | -------------------------------------------------------------------------------- /App/Templates/admin/support/_partials/documentation_sidebar.html: -------------------------------------------------------------------------------- 1 | 29 | -------------------------------------------------------------------------------- /App/Templates/admin/support/documentation.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Documentation{% endblock %} 3 | {% block description %}MagmaCore create permissions{% endblock %} 4 | {% block keywords %}{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | 7 | {% block content %} 8 |
9 |
10 |
11 |
12 | {% include 'admin/support/_partials/documentation_sidebar.html' %} 13 |
14 |
15 | 16 |
17 |
18 |
19 |
20 |

Getting Started

21 |

How to get started using MagmaCore framework for your next project.

22 |
23 |
24 |
25 |
26 |
27 |
28 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/system/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}System Event Viewer{% endblock %} 3 | {% block description %}View the system event log{% endblock %} 4 | {% block keywords %}events{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | 7 | {% block content %} 8 |
9 |
10 | {@ templateExtension('uikit_simple_pagination') @} 11 |
12 |
13 |
14 |
15 | {% include 'admin/common_datatable.html' %} 16 |
17 |
18 | {@ templateExtension('uikit_pagination') @} 19 |
20 |
21 | 22 |
23 | 24 |
25 | {% endblock %} 26 | 27 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/system/requestPermission.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Request Permission{% endblock %} 3 | {% block description %}request-temporary-permission{% endblock %} 4 | {% block keywords %}request permission{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | 7 | {% block content %} 8 |
9 |
10 |
11 |
12 |
13 | {{ $form }} 14 |
15 |
16 |
17 |
18 |
19 | {% endblock %} 20 | 21 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/system/show.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | 3 | {% block title %}System Event Viewer{% endblock %} 4 | {% block description %}View the system event log{% endblock %} 5 | {% block keywords %}events{% endblock %} 6 | {% block author %}Ricardo Miller{% endblock %} 7 | 8 | {% block content %} 9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | 19 |
20 | {% endblock %} 21 | 22 | {% block scripts %}{% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/tag/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Tags{% endblock %} 3 | {% block description %}MagmaCore tags{% endblock %} 4 | {% block keywords %}tag{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | 7 | {% block content %} 8 |
9 | {@ templateExtension('uikit_simple_pagination') @} 10 |
11 |
12 |
13 |
14 |
15 | {% include 'admin/_global/_global_datatable.html' %} 16 |
17 |
18 | {@ templateExtension('uikit_pagination') @} 19 |
20 |
21 |
22 |
23 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/tag/new.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Create Tag{% endblock %} 3 | {% block description %}MagmaCore create new tag{% endblock %} 4 | {% block keywords %}new-tag, create-new{% endblock %} 5 | 6 | {% block content %} 7 |
8 |
9 |
10 |
11 |
12 | {{ $form }} 13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |

What are Tags?

21 |

Roles are a group of permission. Which can be assigned to multiple users within. Roles can have an unlimited amount of permissions. Permissions that can be added and remove at any point. 22 |

23 | 24 |
25 |
26 |
27 | 28 |
29 | 30 | {% endblock %} 31 | 32 | {% block scripts %}{% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/tag/settings.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Tag Settings{% endblock %} 3 | {% block description %}MagmaCore tag Settings{% endblock %} 4 | {% block keywords %}tag-settings{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | {% block styles %} {% endblock %} 7 | 8 | {% block content %} 9 | {% include 'admin/_global/_global_page_settings.html' %} 10 | {% endblock %} 11 | 12 | 13 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/team/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Templates/admin/team/index.html -------------------------------------------------------------------------------- /App/Templates/admin/ticket/_partials/sidebar.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | New Ticket 4 |

5 | 6 | 16 |
17 |
-------------------------------------------------------------------------------- /App/Templates/admin/ticket/edit.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Edit Ticket{% endblock %} 3 | {% block description %}MagmaCore edit a ticket{% endblock %} 4 | {% block keywords %}show-account, edit-ticket{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | 7 | {% block content%} 8 |
9 |
10 |
11 | {% include 'admin/ticket/_partials/sidebar.html' %} 12 |
13 |
14 | 15 |
16 |
17 |
18 | {{ $form }} 19 |
20 |
21 |
22 | 23 |
24 | {% endblock %} 25 | 26 | {% block scripts %}{% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/ticket/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Ticket{% endblock %} 3 | {% block description %}Internal ticket system{% endblock %} 4 | {% block keywords %}{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | 7 | {% block content %} 8 |
9 |
10 |
11 |
12 | {% include 'admin/ticket/_partials/sidebar.html' %} 13 |
14 |
15 | 16 |
17 | {@ templateExtension('uikit_simple_pagination') @} 18 |
19 |
20 |
21 | {% include 'admin/_global/_global_datatable.html' %} 22 |
23 |
24 | {@ templateExtension('uikit_pagination') @} 25 |
26 |
27 |
28 |
29 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/ticket/new.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}New Ticket{% endblock %} 3 | {% block description %}MagmaCore new a ticket{% endblock %} 4 | {% block keywords %}show-ticket, new-ticket{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | 7 | {% block content%} 8 |
9 |
10 |
11 | {% include 'admin/ticket/_partials/sidebar.html' %} 12 |
13 |
14 | 15 |
16 |
17 |
18 | {{ $form }} 19 |
20 |
21 |
22 | 23 |
24 | {% endblock %} 25 | 26 | {% block scripts %}{% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/timesheet/edit.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Templates/admin/timesheet/edit.html -------------------------------------------------------------------------------- /App/Templates/admin/timesheet/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Timesheets{% endblock %} 3 | {% block description %}MagmaCore timesheets{% endblock %} 4 | {% block keywords %}timesheets{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | 7 | 8 | {% block content %} 9 |
10 | {@ templateExtension('uikit_simple_pagination') @} 11 |
12 |
13 |
14 |
15 |
16 | {% include 'admin/_global/_global_datatable.html' %} 17 |
18 |
19 | {@ templateExtension('uikit_pagination') @} 20 |
21 |
22 |
23 |
24 | {% endblock %} 25 | 26 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/timesheet/new.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Create Timesheet{% endblock %} 3 | {% block description %}MagmaCore create new timesheet{% endblock %} 4 | {% block keywords %}new-timesheet, create-new{% endblock %} 5 | 6 | {% block content %} 7 |
8 |
9 |
10 |
11 |
12 | {{ $form }} 13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | 23 | 24 |
25 |
26 |
27 | 28 |
29 | 30 | {% endblock %} 31 | 32 | {% block scripts %}{% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/timesheet/settings.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Templates/admin/timesheet/settings.html -------------------------------------------------------------------------------- /App/Templates/admin/user/_partials/activity_timeline.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 |

24 min ago

6 |
7 |
8 |

Event in one line

9 |
10 |
11 |
12 |

5 days ago

13 |
14 |
15 |

Event in

16 |

two lines

17 |
18 |
19 |
20 |

2 weeks ago

21 |
22 |
23 |

Event in

24 |

three

25 |

lines

26 |
27 |
28 |
29 |
-------------------------------------------------------------------------------- /App/Templates/admin/user/_partials/history_timeline.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

this is a paragraph this is a paragraph this is a paragraph this is a paragraph this is a paragraph

4 |

this is a paragraph this is a paragraph this is a paragraph this is a paragraph this is a paragraph

5 |

this is a paragraph this is a paragraph this is a paragraph this is a paragraph this is a paragraph

6 |

this is a paragraph this is a paragraph this is a paragraph this is a paragraph this is a paragraph

7 |
8 |
-------------------------------------------------------------------------------- /App/Templates/admin/user/_partials/notes_timeline.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

this is a paragraph this is a paragraph this is a paragraph this is a paragraph this is a paragraph

4 |

this is a paragraph this is a paragraph this is a paragraph this is a paragraph this is a paragraph

5 |

this is a paragraph this is a paragraph this is a paragraph this is a paragraph this is a paragraph

6 |

this is a paragraph this is a paragraph this is a paragraph this is a paragraph this is a paragraph

7 |
8 |
-------------------------------------------------------------------------------- /App/Templates/admin/user/_views/view_table.html: -------------------------------------------------------------------------------- 1 | {% include 'admin/_global/_global_datatable.html' %} -------------------------------------------------------------------------------- /App/Templates/admin/user/_views/view_tabs.html: -------------------------------------------------------------------------------- 1 | {% if (count($table_tabs) > 0) : %} 2 | 21 | {% endif; %} 22 | -------------------------------------------------------------------------------- /App/Templates/admin/user/banner/user_not_active.html: -------------------------------------------------------------------------------- 1 |
2 | 3 |

{{ $current_user->status }}

4 |

Please note. This user account is not activated.

5 |
6 | -------------------------------------------------------------------------------- /App/Templates/admin/user/clone.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Templates/admin/user/clone.html -------------------------------------------------------------------------------- /App/Templates/admin/user/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}User Listings{% endblock %} 3 | {% block description %}MagmaCore create an account{% endblock %} 4 | {% block keywords %}register, create an account{% endblock %} 5 | 6 | {% block content %} 7 |
8 |
9 | {@ templateExtension('uikit_simple_pagination') @} 10 |
11 |
12 |
13 |
14 |
15 | {% include '/admin/user/_views/view_tabs.html' %} 16 |
    17 |
  • {% include /admin/user/_views/view_table.html %}
  • 18 |
  • {% include /admin/user/_views/view_pending.html %}
  • 19 |
  • {% include /admin/user/_views/view_lock.html %}
  • 20 |
21 |
22 |
23 |
24 | {@ templateExtension('uikit_pagination') @} 25 |
26 |
27 |
28 |
29 | {% endblock %} 30 | 31 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/user/overview_current_task.html: -------------------------------------------------------------------------------- 1 |
2 |
Backup Users table
3 |
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
4 |
Check for errors on user accounts
5 |
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
6 |
Description term
7 |
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
8 |
-------------------------------------------------------------------------------- /App/Templates/admin/user/personal_connect.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /App/Templates/admin/user/personal_events.html: -------------------------------------------------------------------------------- 1 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur, sed do eiusmod. -------------------------------------------------------------------------------- /App/Templates/admin/user/personal_followers.html: -------------------------------------------------------------------------------- 1 | Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. -------------------------------------------------------------------------------- /App/Templates/admin/user/settings.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}User Settings{% endblock %} 3 | {% block description %}MagmaCore user Settings{% endblock %} 4 | {% block keywords %}user-settings{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | {% block styles %} {% endblock %} 7 | 8 | {% block content %} 9 | {% include 'admin/_global/_global_page_settings.html' %} 10 | {% endblock %} 11 | 12 | 13 | {% block scripts %} {% endblock %} -------------------------------------------------------------------------------- /App/Templates/admin/user/user_privilege_modal.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 |

Set Expiration

6 |

Set an expiration for this role. Note only use this if you are giving temporary advance access to a user. When the expiration expires the user will automatically revert back to their previous role. We recommend creating a new role and apply this feature.

7 |

8 |

9 | 10 |
11 | 12 |
13 |
14 |
15 | 16 |
17 | 18 |
19 |
20 | 21 |

22 |

23 | 24 | 25 |

26 | 27 |
28 |
29 |
-------------------------------------------------------------------------------- /App/Templates/client/activation/activate.html: -------------------------------------------------------------------------------- 1 | {% extends 'frontend_layout.html' %} 2 | 3 | {% block title %}Activate Your Account{% endblock %} 4 | {% block description %}MagmaCore account activation{% endblock %} 5 | {% block keywords %}activation{% endblock %} 6 | {% block author %}Ricardo Miller{% endblock %} 7 | {% block page_header %}{@ locale('your_activated') @}!{% endblock %} 8 | {% block page_tagline %}{% endblock %} 9 | 10 | 11 | 12 | {% block content %} 13 |
14 |

Welcome back

15 |

Your account is now activated and you now have full access to our content and free to update your profile 16 | information.

17 | My Account 18 |
19 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/client/activation/activation_failed.html: -------------------------------------------------------------------------------- 1 | {% extends 'frontend_layout.html' %} 2 | 3 | {% block title %}Activate Expired{% endblock %} 4 | {% block description %}MagmaCore activation expired{% endblock %} 5 | {% block keywords %}activation-expired{% endblock %} 6 | {% block author %}Ricardo Miller{% endblock %} 7 | {% block page_header %}{@ locale('activation_failed') @}!{% endblock %} 8 | {% block page_tagline %}{% endblock %} 9 | 10 | 11 | {% block content %} 12 |
13 |

{@ locale('time_expired') }

14 |

15 | Unfortunately the activation failed. Because the link is only valid for 1 hour. This would mean the account you 16 | created would have been automatically deleted. Please try registering again. 17 |

18 | {@ locale('register_again') } 19 |
20 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/client/error/errora.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Error{% endblock %} 3 | {% block description %}MagmaCore create an account{% endblock %} 4 | {% block keywords %}error{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | {% block styles %}{% endblock %} 7 | 8 | {% block content %} 9 |
10 |
11 |
12 |
13 |
14 |
15 | {@ icon('question', 3.5) @} 16 |
17 |
18 |

Error: Page Not Found 404

19 |

20 | The request page was not found. {{ $invalid_method }} 21 |

22 |
23 |

24 |
25 |
26 |
27 |
28 |
29 |
30 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/client/error/errorm.html: -------------------------------------------------------------------------------- 1 | {% extends 'layout.html' %} 2 | {% block title %}Error{% endblock %} 3 | {% block description %}MagmaCore create an account{% endblock %} 4 | {% block keywords %}error{% endblock %} 5 | {% block author %}Ricardo Miller{% endblock %} 6 | {% block styles %}{% endblock %} 7 | 8 | {% block content %} 9 |
10 |
11 |
12 |
13 |
14 |
15 | {@ icon('question', 3.5) @} 16 |
17 |
18 |

Error: Incorrect Action Request 500

19 |

20 | Method {{ $invalid_method_request }} in controller {{ $route_controler_object }} cannot be called directly - remove the Action suffix to call this method 21 |

22 |
23 |

24 |
25 |
26 |
27 |
28 |
29 |
30 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/client/logout/logout.html: -------------------------------------------------------------------------------- 1 | {% extends 'frontend_layout.html' %} 2 | 3 | {% block title %}Sign Out{% endblock %} 4 | {% block description %}MagmaCore secure login{% endblock %} 5 | {% block keywords %}sign-out{% endblock %} 6 | {% block author %}Ricardo Miller{% endblock %} 7 | {% block page_header %}{@ locale('sign_out') @}{% endblock %} 8 | {% block page_tagline %}You're about to sign out sorry to see you go.{% endblock %} 9 | 10 | 11 | {% block content %} 12 |
13 |
14 |

15 | {{ $form }} Or 16 | Cancel. 17 |

18 |
19 |
20 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/client/password/forgot.html: -------------------------------------------------------------------------------- 1 | {% extends 'frontend_layout.html' %} 2 | 3 | {% block title %}Forgot Password{% endblock %} 4 | {% block description %}MagmaCore password recovery{% endblock %} 5 | {% block keywords %}forgot-password{% endblock %} 6 | {% block author %}Ricardo Miller{% endblock %} 7 | {% block page_header %}Forgot Your Password?{% endblock %} 8 | {% block page_tagline %}We get it, stuff happens. Just enter your email address below and we'll send you a link to reset your password!{% endblock %} 9 | 10 | {% block content %} 11 |
12 | {{ $form }} 13 |
14 |
15 | Create an Account! 16 |
17 | 20 |
21 | {% endblock %} 22 | -------------------------------------------------------------------------------- /App/Templates/client/registration/email_template.html: -------------------------------------------------------------------------------- 1 | {% extends 'template_email.html' %} 2 | 3 | 4 | {% block content %} 5 |
6 |
7 |
8 |

Activate Your Account!

9 |

Hello {{{ $accountee_name }}}

10 | {% if($random_pass) : %} 11 |

Temporary Password:{{{ $random_pass }}}

12 | {% endif; %} 13 |

Thanks for registering on {{ $website }}. Please click the activation button below to activate your 14 | account in order to access your profile page.

15 |
16 |

17 | Activate Now 19 |

20 |
21 |
22 |
23 |
24 |
25 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/client/registration/register.html: -------------------------------------------------------------------------------- 1 | {% extends 'frontend_layout.html' %} 2 | 3 | {% block title %}Create An Account{% endblock %} 4 | 5 | {% block description %}MagmaCore create an account{% endblock %} 6 | 7 | {% block keywords %}register, create an account{% endblock %} 8 | 9 | {% block author %}Ricardo Miller{% endblock %} 10 | 11 | {% block page_header %}{@ locale('create_an_account') @}!{% endblock %} 12 | 13 | {% block page_tagline %}Register for a new subscriber account.{% endblock %} 14 | 15 | 16 | {% block content %} 17 |
18 | 19 | {{ $form }} 20 |
21 |

{@ locale('already_register') @}?
22 | {@ locale('login') @} 23 |

24 |
25 |
26 |

{@ locale('register_terms') @}

27 |
28 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/client/registration/registered.html: -------------------------------------------------------------------------------- 1 | {% extends 'frontend_layout.html' %} 2 | 3 | {% block title %}Registered{% endblock %} 4 | {% block description %}MagmaCore create an account{% endblock %} 5 | {% block keywords %}register, create an account{% endblock %} 6 | {% block author %}Ricardo Miller{% endblock %} 7 | {% block page_header %}{@ locale('welcome') @}!{% endblock %} 8 | {% block page_tagline %}{% endblock %} 9 | 10 | 11 | {% block content %} 12 |
13 |

Thanks for registering. Your account was created, but you now need to click the link sent to the email address 14 | you registered with. Once you click that link your account will become active and you will be redirect to the 15 | login page.

16 | {@ locale('login') @} 17 |
18 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/client/security/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'frontend_layout.html' %} 2 | 3 | {% block title %}Login{% endblock %} 4 | 5 | {% block description %}MagmaCore secure login{% endblock %} 6 | 7 | {% block keywords %}login{% endblock %} 8 | 9 | {% block author %}Ricardo Miller{% endblock %} 10 | 11 | {% block page_header %} Sign in {% endblock %} 12 | 13 | {% block page_tagline %}{% endblock %} 14 | 15 | 16 | {% block content %} 17 |
18 | {{ $form }} 19 |
20 |

{@ locale('no_account') @}?
21 | {@ locale('register') 22 | @} 23 |

24 | {@ locale('forgotton_password') @}? 25 |
26 |
27 |
28 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/client/security/logout.html: -------------------------------------------------------------------------------- 1 | {% extends 'frontend_layout.html' %} 2 | 3 | {% block title %}Sign Out{% endblock %} 4 | {% block description %}MagmaCore secure login{% endblock %} 5 | {% block keywords %}sign-out{% endblock %} 6 | {% block author %}Ricardo Miller{% endblock %} 7 | {% block page_header %}{@ locale('sign_out') @}{% endblock %} 8 | {% block page_tagline %}You're about to sign out sorry to see you go.{% endblock %} 9 | 10 | 11 | {% block content %} 12 |
13 |
14 |

15 | {{ $form }} Or 16 | Cancel. 17 |

18 |
19 |
20 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/client/security/session.html: -------------------------------------------------------------------------------- 1 | {% extends 'frontend_layout.html' %} 2 | 3 | {% block title %}Session Expired{% endblock %} 4 | {% block description %}MagmaCore your session has expired{% endblock %} 5 | {% block keywords %}session expires{% endblock %} 6 | {% block author %}{% endblock %} 7 | {% block page_header %}{@ locale('session_expired') @}!{% endblock %} 8 | {% block page_tagline %}{% endblock %} 9 | 10 | 11 | {% block content %} 12 |
13 |

Your session was expired. Because the application was left idling for too long. Click the login button below to 14 | login again

15 | {@ locale('login') @} 16 |
17 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/frontend_layout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {% yield title %} 6 | 7 | 8 | 9 | 10 | 11 | {@ addcss() @} 12 | {@ addjs([], 'header') @} 13 | {% yield styles %} 14 | 15 | 16 | 17 | 18 |
19 |
20 |

{% yield page_header %}

21 |

{% yield page_tagline %}

22 |
23 |
24 | 25 |
26 |
{@ templateExtension('uikit_flash_message') @}
27 | {% yield content %} 28 |
29 | 30 | {@ addjs() @} 31 | {% yield scripts %} 32 | 33 | 34 | -------------------------------------------------------------------------------- /App/Templates/layout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {% yield title %} 6 | 7 | 8 | 9 | 10 | 11 | {@ addcss() @} 12 | {@ addjs([], 'header') @} 13 | {% yield styles %} 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | {% include 'loader.html' %} 22 | 23 |
24 | {% include '_global/_block_header.html' %} 25 | {% include '_global/_block_sidebar.html' %} 26 | {% include '_global/_block_content.html' %} 27 |
28 | 29 | {@ getWidget('notification_widget', 'notifications', 'id', ['id' => 'notification-panel', 'limit' => 3, 'orderby' => 'id DESC']) @} 30 | 31 | {@ addjs() @} 32 | {% yield scripts %} 33 | 34 | 35 | -------------------------------------------------------------------------------- /App/Templates/loader.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

Loading! 5 |
6 |
7 |
-------------------------------------------------------------------------------- /App/Templates/profile/account/email.html: -------------------------------------------------------------------------------- 1 | {% extends 'frontend_layout.html' %} 2 | 3 | {% block title %}Update Your Email Address{% endblock %} 4 | {% block description %}MagmaCore update email{% endblock %} 5 | {% block keywords %}update-email{% endblock %} 6 | {% block author %}{% endblock %} 7 | {% block page_header%}{@ locale('edit_email') @}{% endblock %} 8 | {% block page_tagline %}{% endblock %} 9 | 10 | 11 | {% block content %} 12 |
13 |

Remember to verify your new email address after you've changed it, using the email we'll send you. Your email will not changed otherwise.

14 | {{ $form }} 15 | 19 | 20 |
21 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/profile/account/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'frontend_layout.html' %} 2 | 3 | {% block title %}Login{% endblock %} 4 | {% block description %}MagmaCore secure login{% endblock %} 5 | {% block keywords %}login{% endblock %} 6 | {% block author %}Ricardo Miller{% endblock %} 7 | {% block page_header %}{@ locale('personal_details') @}{% endblock %} 8 | {% block page_tagline %}{% endblock %} 9 | 10 | 11 | {% block content %} 12 |
13 |

Your account was created {@ formatDate($row['created_at'], true) @}. 14 |

15 |
Status: {{ $row['status'] }}
16 |
Role: {{ $privilege_user->getRole() }}
17 |
Permission (s): {% print_r($privilege_user->getPermissions()) %}
18 |
19 | 20 |

21 | 26 |
27 | Home | Logout 28 |
29 |
30 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/profile/account/name.html: -------------------------------------------------------------------------------- 1 | {% extends 'frontend_layout.html' %} 2 | 3 | {% block title %}Update Your Name{% endblock %} 4 | {% block description %}MagmaCore update name{% endblock %} 5 | {% block keywords %}update-name{% endblock %} 6 | {% block author %}{% endblock %} 7 | {% block page_header %}{@ locale('edit_name') @}{% endblock %} 8 | {% block page_tagline %}{% endblock %} 9 | 10 | 11 | {% block content %} 12 |
13 |

Your display name is what people will see whenever you do anything public on our website or app. For example, if 14 | you comment on a story.

15 | {{ $form }} 16 | {@ locale('cancel') @} 17 |
18 | {% endblock %} -------------------------------------------------------------------------------- /App/Templates/profile/account/password.html: -------------------------------------------------------------------------------- 1 | {% extends 'frontend_layout.html' %} 2 | 3 | {% block title %}Update Your Password{% endblock %} 4 | {% block description %}MagmaCore update password{% endblock %} 5 | {% block keywords %}update-password{% endblock %} 6 | {% block author %}{% endblock %} 7 | {% block page_header %}{@ locale('edit_password') @}{% endblock %} 8 | {% block page_tagline %}{% endblock %} 9 | 10 | 11 | {% block content %} 12 |
13 |

Passwords need to include...

14 |
15 | 16 |

Notice

17 |
    18 |
  • 8 or more characters
  • 19 |
  • At least 1 letter
  • 20 |
  • At least 1 number
  • 21 |
22 |
23 | {{ $form }} {@ locale('cancel') 24 | @} 25 |
26 | {% endblock %} -------------------------------------------------------------------------------- /App/Test/TestActionEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Test/TestActionEvent.php -------------------------------------------------------------------------------- /App/Test/TestActionSubscriber.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Test/TestActionSubscriber.php -------------------------------------------------------------------------------- /App/Test/TestApiResource.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Test/TestApiResource.php -------------------------------------------------------------------------------- /App/Test/TestCommander.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Test/TestCommander.php -------------------------------------------------------------------------------- /App/Test/TestController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Test/TestController.php -------------------------------------------------------------------------------- /App/Test/TestEntity.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Test/TestEntity.php -------------------------------------------------------------------------------- /App/Test/TestForm.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Test/TestForm.php -------------------------------------------------------------------------------- /App/Test/TestListeber.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Test/TestListeber.php -------------------------------------------------------------------------------- /App/Test/TestModel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Test/TestModel.php -------------------------------------------------------------------------------- /App/Test/TestRelationship.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Test/TestRelationship.php -------------------------------------------------------------------------------- /App/Test/TestRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Test/TestRepository.php -------------------------------------------------------------------------------- /App/Test/TestSchema.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Test/TestSchema.php -------------------------------------------------------------------------------- /App/Test/TestValidate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Test/TestValidate.php -------------------------------------------------------------------------------- /App/Test/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Test/test.yml -------------------------------------------------------------------------------- /App/Test/views/edit.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Test/views/edit.html -------------------------------------------------------------------------------- /App/Test/views/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Test/views/index.html -------------------------------------------------------------------------------- /App/Test/views/logs.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Test/views/logs.html -------------------------------------------------------------------------------- /App/Test/views/new.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Test/views/new.html -------------------------------------------------------------------------------- /App/Test/views/settings.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/App/Test/views/settings.html -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/CHANGELOG.md -------------------------------------------------------------------------------- /Config/extend_assets.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/Config/extend_assets.yml -------------------------------------------------------------------------------- /Config/extend_routes.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/Config/extend_routes.yml -------------------------------------------------------------------------------- /Config/magma_blank.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/Config/magma_blank.yml -------------------------------------------------------------------------------- /Public/assets/css/uikit/gauges.css: -------------------------------------------------------------------------------- 1 | .ldBar { 2 | position: relative; 3 | } 4 | 5 | .ldBar.label-center>.ldBar-label { 6 | position: absolute; 7 | top: 50%; 8 | left: 50%; 9 | -webkit-transform: translate(-50%, -50%); 10 | transform: translate(-50%, -50%); 11 | text-shadow: 0 0 3px #fff; 12 | } 13 | 14 | .ldBar-label:after { 15 | content: "%"; 16 | display: inline; 17 | } 18 | 19 | .ldBar.no-percent .ldBar-label:after { 20 | content: ""; 21 | } -------------------------------------------------------------------------------- /Public/assets/images/dashboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/Public/assets/images/dashboard.png -------------------------------------------------------------------------------- /Public/assets/images/flags/de.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Public/assets/images/flags/fr.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Public/assets/images/flags/gb.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Public/assets/images/manual.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/Public/assets/images/manual.png -------------------------------------------------------------------------------- /Public/assets/images/sort/iconmonstr-sort-13.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Public/assets/images/sort/iconmonstr-sort-14.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Public/assets/images/sort/iconmonstr-sort-15.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Public/assets/images/sort/iconmonstr-sort-16.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Public/assets/images/sort/iconmonstr-sort-17.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Public/assets/images/sort/iconmonstr-sort-18.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Public/assets/images/sort/iconmonstr-sort-19.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Public/assets/images/sort/iconmonstr-sort-20.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Public/assets/images/sort/iconmonstr-sort-21.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Public/assets/images/sort/iconmonstr-sort-22.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Public/assets/images/sort/sort-down.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Public/assets/images/sort/sort-up.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Public/assets/images/sort/sort.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Public/assets/images/text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/Public/assets/images/text.png -------------------------------------------------------------------------------- /Public/assets/js/react/react_button.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const e = React.createElement; 4 | 5 | class LikeButton extends React.Component { 6 | constructor(props) { 7 | super(props); 8 | this.state = { liked: false }; 9 | } 10 | 11 | render() { 12 | if (this.state.liked) { 13 | return 'You liked this.'; 14 | } 15 | 16 | return ( 21 | ); 22 | } 23 | } 24 | 25 | const domContainer = document.querySelector('#like_button_container'); 26 | ReactDOM.render(e(LikeButton), domContainer); -------------------------------------------------------------------------------- /Public/assets/js/react/react_commander.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/Public/assets/js/react/react_commander.js -------------------------------------------------------------------------------- /Public/assets/js/react/react_commander_navigator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/Public/assets/js/react/react_commander_navigator.js -------------------------------------------------------------------------------- /Public/assets/js/react/react_datatable.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const e = React.createElement; 4 | 5 | class ReactDatatable extends React.Component { 6 | constructor(props) { 7 | super(props); 8 | this.state = { 9 | error: null, 10 | isLoaded: false, 11 | data: [] 12 | }; 13 | } 14 | 15 | componentDidMount() { 16 | fetch('http://localhost/api/user/index') 17 | .then(res => res.json()) 18 | .then( 19 | (result) => { 20 | this.setState({ 21 | isLoaded: true, 22 | data: result 23 | }); 24 | }, 25 | (error) => { 26 | this.setState({ 27 | isLoaded: true, 28 | error 29 | }); 30 | } 31 | ) 32 | } 33 | 34 | render() { 35 | const { error, isLoaded, data } = this.state; 36 | if (error) { 37 | return
Error: {error.message}
; 38 | } else if(!isLoaded) { 39 | return
Loading...
; 40 | } else { 41 | return ( 42 |
43 | ); 44 | 45 | } 46 | } 47 | } 48 | 49 | const domContainer = document.querySelector('#react_datatable'); 50 | ReactDOM.render(e(ReactDatatable), domContainer); -------------------------------------------------------------------------------- /Public/assets/js/react/react_datatable_tabs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/Public/assets/js/react/react_datatable_tabs.js -------------------------------------------------------------------------------- /Public/assets/js/react/react_pagination.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const e = React.createElement; 4 | 5 | class Pagination extends React.Component { 6 | 7 | constructor(props) { 8 | super(props); 9 | 10 | this.state = { liked: false }; 11 | } 12 | 13 | render() { 14 | if (this.state.liked) { 15 | return 'You like this.'; 16 | } 17 | return ( 18 | 19 | ); 20 | } 21 | 22 | } 23 | const domContainer = document.querySelector('#like_button_container'); 24 | ReactDOM.render(e(LikeButton), domContainer); 25 | -------------------------------------------------------------------------------- /Public/assets/js/uikit/app.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Add jQuery Validation plugin method for a valid password 3 | * 4 | * Valid passwords contain at least one letter and one number. 5 | */ 6 | $.validator.addMethod('validPassword', 7 | function(value, element, param) { 8 | 9 | if (value != '') { 10 | if (value.match(/.*[a-z]+.*/i) == null) { 11 | return false; 12 | } 13 | if (value.match(/.*\d+.*/) == null) { 14 | return false; 15 | } 16 | } 17 | 18 | return true; 19 | }, 20 | 'Must contain at least one letter and one number' 21 | ); 22 | -------------------------------------------------------------------------------- /Public/assets/js/uikit/check-all.js: -------------------------------------------------------------------------------- 1 | function checkUncheckAll() { 2 | var rows = document.getElementsByName('id[]'); // *Columns name attribute 3 | var isCheck = false; // flag defaults to false 4 | rows.forEach((cb) => { 5 | if (cb.type === 'checkbox') { 6 | if (cb.checked === false) { 7 | isCheck = true 8 | cb.checked = true; 9 | } else { 10 | if (cb.checked === true) { 11 | isCheck = false; 12 | cb.checked = false; 13 | } 14 | } 15 | } 16 | }) 17 | whenCheck(isCheck) 18 | 19 | } 20 | 21 | function whenCheck(isCheck) { 22 | var toggle = document.getElementById("js-selector-container"); 23 | if (isCheck === true) { 24 | toggle.innerHTML = ` 25 |
26 | 27 | 28 | 29 |
30 | `; 31 | } else { 32 | toggle.innerHTML = ""; 33 | } 34 | } -------------------------------------------------------------------------------- /Public/assets/js/uikit/checkall.js: -------------------------------------------------------------------------------- 1 | $('#selectAllDomainList').click (function () { 2 | const checkedStatus = this.checked; 3 | $('#datatable tbody tr').find('td:first :checkbox').each(function () { 4 | $(this).prop('checked', checkedStatus); 5 | }); 6 | }); 7 | -------------------------------------------------------------------------------- /Public/assets/js/uikit/jquery.pjax.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/Public/assets/js/uikit/jquery.pjax.js -------------------------------------------------------------------------------- /Public/assets/js/uikit/notification.js: -------------------------------------------------------------------------------- 1 | // Create an instance of Notyf 2 | var notyf = new Notyf(); 3 | 4 | setTimeout(function() { 5 | notyf.confirm('Welcome to UI Admin!!'); 6 | }, 500); 7 | -------------------------------------------------------------------------------- /Public/assets/js/uikit/sparks.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function() { 2 | // $("#sparkline").sparkline([100, 155, 58, 68, -45], { 3 | // type: 'bar', 4 | // height: '30%', 5 | // barWidth: '20%', 6 | // barColor: "rgb(30, 135, 240)", 7 | // negBarColor: "rgb(32, 42,47)", 8 | // zeroColor: 'green' 9 | // }); 10 | $("#active_now_pie").sparkline([1, 1, 2], { 11 | type: 'bar', 12 | height: '60', 13 | barWidth: '10', 14 | barColor: '#222222' 15 | }); 16 | 17 | $("#todays_visit_bar").sparkline([5, 6, 7, 2, 0, -4, -2, 4], { 18 | type: 'bar', 19 | height: '60', 20 | barWidth: '10', 21 | barColor: '#222222' 22 | }); 23 | $("#bounce_rate").sparkline([5, 6, 7, 9, 9, 5, 3, 2, 2, 4, 6, 7], { 24 | type: 'line', 25 | width: '70', 26 | height: '59', 27 | lineColor: '#ff0000', 28 | fillColor: '#222222' 29 | }); 30 | 31 | }); -------------------------------------------------------------------------------- /Public/assets/js/uikit/status.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | var timeout = null; 3 | function checkStatus() { 4 | clearTimeout(timeout); 5 | var status = $('#status'); 6 | status.text(status.data('online-text')); 7 | status.removeClass('uk-label-warning'); 8 | status.addClass('uk-label-success'); 9 | timeout = setTimeout(function() { 10 | status.text(status.data('away-text')); 11 | status.removeClass('uk-label-success'); 12 | status.addClass('uk-label-warning'); 13 | }, status.data('interval')); 14 | } 15 | 16 | var status = $('#status'); 17 | if( status.length ) { 18 | if( status.data('enabled') == true ) { 19 | checkStatus(); 20 | $(document).on('mousemove', function() { 21 | checkStatus(); 22 | }); 23 | } else { 24 | status.css({'display': 'none'}); 25 | } 26 | } 27 | 28 | }); -------------------------------------------------------------------------------- /Public/include.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | $vendorPath = '/vendor/magmacore/magmacore/src/'; 12 | 13 | /** 14 | * Root constants required for the main index file 15 | */ 16 | 17 | defined('MICROTIME_START') or 18 | define('MICROTIME_START', microtime(true)); 19 | defined('MICROTIME_END') or 20 | define('MICROTIME_END', microtime(true)); 21 | defined('ROOT_PATH') or 22 | define('ROOT_PATH', realpath(dirname(__FILE__, 2))); 23 | defined('CONFIG_PATH') or 24 | define("CONFIG_PATH", ROOT_PATH . '/' . "Config/"); 25 | defined('CORE_CONFIG_PATH') or 26 | define("CORE_CONFIG_PATH", ROOT_PATH . $vendorPath . "System/Config/"); 27 | defined('TEMPLATE_CACHE') or 28 | define("TEMPLATE_CACHE", ROOT_PATH . '/' . "App/Templates/Cache"); 29 | defined('LOG_PATH') or 30 | define('LOG_PATH', ROOT_PATH . '/Storage/logs.txt'); 31 | 32 | /** 33 | * Load the composer library 34 | */ 35 | $composer = ROOT_PATH . '/vendor/autoload.php'; 36 | if (is_file($composer)) { 37 | require $composer; 38 | } 39 | -------------------------------------------------------------------------------- /Public/index.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | /** 14 | * Load the composer autoloader library which enables us to bootstrap the application 15 | * and initialize the necessary components. 16 | */ 17 | 18 | require_once 'include.php'; 19 | 20 | use MagmaCore\Utility\Yaml; 21 | use MagmaCore\Logger\LogLevel; 22 | use MagmaCore\Base\BaseApplication; 23 | 24 | 25 | try { 26 | /* Attempting to run a single instance of the application */ 27 | BaseApplication::getInstance() 28 | ->setPath(ROOT_PATH) 29 | ->setConfig(Yaml::file('app')) 30 | ->setErrorHandler(Yaml::file('app')['error_handler'], E_ALL) 31 | ->setSession(Yaml::file('app')['session'], null, true) 32 | ->setCookie([]) 33 | ->setCache(Yaml::file('app')['cache'], null, true) 34 | ->setRoutes(Yaml::file('routes')) 35 | ->setLogger(LOG_PATH, Yaml::file('app')['logger_handler']['file'], LogLevel::DEBUG, []) 36 | ->setContainerProviders(Yaml::file('providers')) 37 | ->run(); 38 | } catch (Exception $e) { 39 | echo $e->getMessage(); 40 | } 41 | 42 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MagmaSkeleton 2 | This project is in active development. So is evolving constantly. As soon project gets to stable point. Due notice will be given 3 | -------------------------------------------------------------------------------- /Storage/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore everything in this directory 2 | * 3 | # Except this file 4 | !.gitignore -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | create(); 11 | exit($console); -------------------------------------------------------------------------------- /bin/push-server.php: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | 3 | getSocket(ZMQ::SOCKET_PULL); 18 | $pull->bind('tcp://127.0.0.1:5555'); // Binding to 127.0.0.1 means the only client that can connect is itself 19 | $pull->on('message', array($pusher, 'onBlogEntry')); 20 | 21 | // Set up our WebSocket server for clients wanting real-time updates 22 | $webSock = new React\Socket\Server('0.0.0.0:8080', $loop); // Binding to 0.0.0.0 means remotes can connect 23 | $webServer = new Ratchet\Server\IoServer( 24 | new Ratchet\Http\HttpServer( 25 | new Ratchet\WebSocket\WsServer( 26 | new Ratchet\Wamp\WampServer( 27 | $pusher 28 | ) 29 | ) 30 | ), 31 | $webSock 32 | ); 33 | 34 | $loop->run(); -------------------------------------------------------------------------------- /i18n/locale/base.yml: -------------------------------------------------------------------------------- 1 | en: 2 | copyright: Created by LavaStudio 3 | cancel: Cancel 4 | remember_me: Remember me 5 | filter: Filter 6 | action: Action 7 | 8 | fr: 9 | copyright: Créé par LavaStudio 10 | cancel: Supprimer 11 | remember_me: se souvenir de moi 12 | 13 | es: 14 | copyright: Creado por LavaStudio 15 | cancel: anular 16 | remember_me: Acuérdate de mí -------------------------------------------------------------------------------- /i18n/locale/gb.yml: -------------------------------------------------------------------------------- 1 | dashboard: Dashboard 2 | user: User 3 | users: Users 4 | menu: Menu 5 | menus: Menus 6 | permission: Permission 7 | permissions: Permissions 8 | role: Role 9 | roles: Roles 10 | group: Group 11 | groups: Groups 12 | setting: Setting 13 | settings: Settings 14 | system: System 15 | systems: Systems 16 | message: Message 17 | messages: Messages 18 | ticket: Ticket 19 | tickets: Tickets 20 | add_new: Add New 21 | view: View 22 | edit: Edit 23 | delete: Delete 24 | -------------------------------------------------------------------------------- /i18n/locale/password.yml: -------------------------------------------------------------------------------- 1 | en: 2 | title: Forgot Password 3 | description: Recover your lost password 4 | keywords: {} 5 | form: 6 | page_title: What's your email address 7 | page_content: Enter the email you used to register with the BBC and we'll send you a link to reset your password. If you're having problems or are under 13 years old, you can get help here. 8 | no_account: No Account Yet! 9 | register: Register -------------------------------------------------------------------------------- /i18n/locale/role.yml: -------------------------------------------------------------------------------- 1 | en: 2 | add_new_role: 'Add New Role' 3 | filter: Filter 4 | fr: 5 | test: '' 6 | 7 | es: 8 | test: '' -------------------------------------------------------------------------------- /i18n/locale/security.yml: -------------------------------------------------------------------------------- 1 | en: 2 | title: Login 3 | description: Meta description goes here 4 | keywords: {} 5 | logout: 6 | page_title: Logout 7 | page_content: You're about to sign out sorry to see you go. 8 | form: 9 | page_title: Welcome Back! 10 | forgot_password: Forgot Password? 11 | create_account: Create an Account! 12 | 13 | fr: 14 | title: Connexion 15 | description: Meta description goes here 16 | keywords: {} 17 | logout: 18 | page_title: Déconnexion 19 | page_content: Vous êtes sur le point de signer désolé de vous voir partir. 20 | form: 21 | page_title: Bienvenue! 22 | forgot_password: Mot de passe oublié ? 23 | create_account: Créez un compte ! 24 | 25 | es: 26 | title: Inicio de sesión 27 | description: Meta description goes here 28 | keywords: {} 29 | logout: 30 | page_title: CERRAR SESIÓN 31 | page_content: Estás a punto de firmar siento verte ir. 32 | form: 33 | page_title: ¡Bienvenido! 34 | forgot_password: ¿Olvidaste tu contraseña? 35 | create_account: ¡Crea una cuenta! 36 | -------------------------------------------------------------------------------- /i18n/locale/user.yml: -------------------------------------------------------------------------------- 1 | en: 2 | add_new_user: 'Add New User' 3 | filter: Filter 4 | register_user: Register a new user 5 | 6 | fr: 7 | test: '' 8 | 9 | es: 10 | test: '' -------------------------------------------------------------------------------- /magma/change.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | /** 14 | * Load the composer autoloader library which enables us to bootstrap the application 15 | * and initialize the necessary components. 16 | */ 17 | defined('ROOT_PATH') or define('ROOT_PATH', realpath(dirname(dirname(__FILE__)))); 18 | $composer = ROOT_PATH . '/vendor/autoload.php'; 19 | if (is_file($composer)) { 20 | require $composer; 21 | } 22 | 23 | use MagmaCore\Migration\Driver\MigrationMysql; 24 | 25 | $migrations = new MigrationMysql(); 26 | $migrations->migrate('change'); -------------------------------------------------------------------------------- /magma/create.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | /** 14 | * Load the composer autoloader library which enables us to bootstrap the application 15 | * and initialize the necessary components. 16 | */ 17 | defined('ROOT_PATH') or define('ROOT_PATH', realpath(dirname(dirname(__FILE__)))); 18 | defined('CONFIG_PATH') or define("CONFIG_PATH", ROOT_PATH . '/' . "Config/"); 19 | $composer = ROOT_PATH . '/vendor/autoload.php'; 20 | if (is_file($composer)) { 21 | require $composer; 22 | } 23 | use MagmaCore\Migration\Driver\MigrationMysql; 24 | 25 | $migrations = new MigrationMysql(); 26 | $migrations->createMigrationFromSchema(); -------------------------------------------------------------------------------- /magma/destroy.php: -------------------------------------------------------------------------------- 1 | migrate('down'); -------------------------------------------------------------------------------- /magma/inc.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | /** 14 | * Load the composer autoloader library which enables us to bootstrap the application 15 | * and initialize the necessary components. 16 | */ 17 | defined('ROOT_PATH') or define('ROOT_PATH', realpath(dirname(dirname(__FILE__)))); 18 | $composer = ROOT_PATH . '/vendor/autoload.php'; 19 | if (is_file($composer)) { 20 | require $composer; 21 | } -------------------------------------------------------------------------------- /magma/migrate.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | declare(strict_types=1); 12 | 13 | /** 14 | * Load the composer autoloader library which enables us to bootstrap the application 15 | * and initialize the necessary components. 16 | */ 17 | defined('ROOT_PATH') or define('ROOT_PATH', realpath(dirname(dirname(__FILE__)))); 18 | $composer = ROOT_PATH . '/vendor/autoload.php'; 19 | if (is_file($composer)) { 20 | require $composer; 21 | } 22 | 23 | use MagmaCore\Migration\Driver\MigrationMysql; 24 | 25 | $migrations = new MigrationMysql(); 26 | $migrations->migrate('up'); -------------------------------------------------------------------------------- /magma/migration/reset.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /robot.txt: -------------------------------------------------------------------------------- 1 | # www.robotstxt.org/ 2 | 3 | # Allow crawling of all content 4 | User-agent: * 5 | Disallow: /vendor/ 6 | Disallow: /Storage/ 7 | Disallow: /bin/ 8 | Disallow: /Core/ 9 | Disallow: /test/ 10 | Allow: /Public/ 11 | Allow: /Public/themes/ 12 | Allow: / -------------------------------------------------------------------------------- /tests/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodingWorkshop/MagmaSkeleton/3a2d5eeadaf97819c7a23b547d0a6cbf1596900d/tests/.gitkeep --------------------------------------------------------------------------------