Add branding feature with form, route, and object implementations

Introduced a new branding functionality, including a `branding_o` object, `create_branding_f` form, and associated routes in `BrandingRoute`. Refactored the forms directory for better organization and added support for branding in departments. Extended validation, object handling, and response handling to accommodate this new feature.
This commit is contained in:
Jepp9350
2025-03-26 11:04:12 +01:00
parent 6f36dc230a
commit 4deef9dc09
11 changed files with 495 additions and 24 deletions
+8 -7
View File
@@ -9,16 +9,17 @@ require_once WD . '/traits/form_t.php';
require_once WD . '/modules/forms/form_helper_c.php';
use Exception;
use forms\book_interior_wash_f;
use forms\book_wash_f;
use forms\form_helper_c;
use forms\generate_booking_wash_certificate_f;
use forms\objects\book_interior_wash_f;
use forms\objects\book_wash_f;
use forms\objects\generate_booking_wash_certificate_f;
use traits\form_t;
/** Require the forms */
require_once WD . '/modules/forms/book_wash_f.php';
require_once WD . '/modules/forms/book_interior_wash_f.php';
require_once WD . '/modules/forms/generate_booking_wash_certificate_f.php';
/** Require the forms using glob */
foreach ( glob(WD . '/modules/forms/objects/*.php') as $filename ) {
require_once $filename;
}
class form
{