Refactor task management and add attachment functionality
- Updated task editing template to handle default status for new tasks and corrected variable names. - Enhanced work time reporting by rounding time to the nearest quarter hour and adjusting amount formatting. - Introduced TasksController to manage task-related operations, including status resolution and email notifications. - Added TaskAttachmentRepository for handling task attachments, including upload, rename, and delete functionalities. - Implemented WorkTimeRepository to fetch clients with unsettled tasks and calculate total work time. - Created unit tests for TasksController and TaskAttachmentRepository to ensure functionality and correctness.
This commit is contained in:
@@ -4,7 +4,10 @@ function __autoload_my_classes($classname)
|
||||
{
|
||||
$q = explode('\\', $classname);
|
||||
$c = array_pop($q);
|
||||
$f = 'autoload/' . implode('/', $q) . '/class.' . $c . '.php';
|
||||
$base_path = 'autoload/' . implode('/', $q) . '/';
|
||||
$f = $base_path . $c . '.php';
|
||||
if ( !file_exists( $f ) )
|
||||
$f = $base_path . 'class.' . $c . '.php';
|
||||
|
||||
if (file_exists($f)) {
|
||||
require_once($f);
|
||||
@@ -72,4 +75,4 @@ if ( !$user and !in_array( $_SERVER['REQUEST_URI'], [ '/logowanie', '/rejestracj
|
||||
exit;
|
||||
}
|
||||
|
||||
echo \view\Site::show();
|
||||
echo \view\Site::show();
|
||||
|
||||
Reference in New Issue
Block a user