summaryrefslogtreecommitdiff
path: root/app/Model
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model')
-rw-r--r--app/Model/Acl.php2
-rw-r--r--app/Model/Action.php10
-rw-r--r--app/Model/Authentication.php6
-rw-r--r--app/Model/Base.php4
-rw-r--r--app/Model/Board.php2
-rw-r--r--app/Model/Category.php2
-rw-r--r--app/Model/Color.php2
-rw-r--r--app/Model/Comment.php4
-rw-r--r--app/Model/Config.php8
-rw-r--r--app/Model/Currency.php2
-rw-r--r--app/Model/CustomFilter.php2
-rw-r--r--app/Model/DateParser.php2
-rw-r--r--app/Model/EmailNotification.php4
-rw-r--r--app/Model/File.php8
-rw-r--r--app/Model/LastLogin.php2
-rw-r--r--app/Model/Link.php2
-rw-r--r--app/Model/Notification.php4
-rw-r--r--app/Model/NotificationFilter.php2
-rw-r--r--app/Model/NotificationType.php2
-rw-r--r--app/Model/OverdueNotification.php2
-rw-r--r--app/Model/Project.php4
-rw-r--r--app/Model/ProjectActivity.php2
-rw-r--r--app/Model/ProjectAnalytic.php2
-rw-r--r--app/Model/ProjectDailyColumnStats.php2
-rw-r--r--app/Model/ProjectDailyStats.php2
-rw-r--r--app/Model/ProjectDuplication.php2
-rw-r--r--app/Model/ProjectIntegration.php2
-rw-r--r--app/Model/ProjectPermission.php2
-rw-r--r--app/Model/Subtask.php4
-rw-r--r--app/Model/SubtaskExport.php2
-rw-r--r--app/Model/SubtaskTimeTracking.php2
-rw-r--r--app/Model/Swimlane.php2
-rw-r--r--app/Model/Task.php2
-rw-r--r--app/Model/TaskAnalytic.php2
-rw-r--r--app/Model/TaskCreation.php4
-rwxr-xr-xapp/Model/TaskDuplication.php4
-rw-r--r--app/Model/TaskExport.php2
-rw-r--r--app/Model/TaskFilter.php2
-rw-r--r--app/Model/TaskFinder.php2
-rw-r--r--app/Model/TaskImport.php4
-rw-r--r--app/Model/TaskLink.php4
-rw-r--r--app/Model/TaskModification.php4
-rw-r--r--app/Model/TaskPermission.php2
-rw-r--r--app/Model/TaskPosition.php4
-rw-r--r--app/Model/TaskStatus.php4
-rw-r--r--app/Model/TaskValidator.php2
-rw-r--r--app/Model/Transition.php2
-rw-r--r--app/Model/User.php6
-rw-r--r--app/Model/UserImport.php4
-rw-r--r--app/Model/UserSession.php4
-rw-r--r--app/Model/WebNotification.php4
-rw-r--r--app/Model/Webhook.php2
52 files changed, 82 insertions, 82 deletions
diff --git a/app/Model/Acl.php b/app/Model/Acl.php
index 35488c63..92ce0c5a 100644
--- a/app/Model/Acl.php
+++ b/app/Model/Acl.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
/**
* Access List
diff --git a/app/Model/Action.php b/app/Model/Action.php
index 57bd5b0d..b48e3ae3 100644
--- a/app/Model/Action.php
+++ b/app/Model/Action.php
@@ -1,10 +1,10 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
-use Integration\GitlabWebhook;
-use Integration\GithubWebhook;
-use Integration\BitbucketWebhook;
+use Kanboard\Integration\GitlabWebhook;
+use Kanboard\Integration\GithubWebhook;
+use Kanboard\Integration\BitbucketWebhook;
use SimpleValidator\Validator;
use SimpleValidator\Validators;
@@ -320,7 +320,7 @@ class Action extends Base
*/
public function load($name, $project_id, $event)
{
- $className = $name{0} !== '\\' ? '\Action\\'.$name : $name;
+ $className = $name{0} !== '\\' ? '\Kanboard\Action\\'.$name : $name;
return new $className($this->container, $project_id, $event);
}
diff --git a/app/Model/Authentication.php b/app/Model/Authentication.php
index 93a463f1..acd563bc 100644
--- a/app/Model/Authentication.php
+++ b/app/Model/Authentication.php
@@ -1,8 +1,8 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
-use Core\Request;
+use Kanboard\Core\Request;
use SimpleValidator\Validator;
use SimpleValidator\Validators;
use Gregwar\Captcha\CaptchaBuilder;
@@ -25,7 +25,7 @@ class Authentication extends Base
public function backend($name)
{
if (! isset($this->container[$name])) {
- $class = '\Auth\\'.ucfirst($name);
+ $class = '\Kanboard\Auth\\'.ucfirst($name);
$this->container[$name] = new $class($this->container);
}
diff --git a/app/Model/Base.php b/app/Model/Base.php
index 902ab269..4c7ada7c 100644
--- a/app/Model/Base.php
+++ b/app/Model/Base.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
use Pimple\Container;
@@ -10,7 +10,7 @@ use Pimple\Container;
* @package model
* @author Frederic Guillot
*/
-abstract class Base extends \Core\Base
+abstract class Base extends \Kanboard\Core\Base
{
/**
* Save a record in the database
diff --git a/app/Model/Board.php b/app/Model/Board.php
index 7217542d..6b450d22 100644
--- a/app/Model/Board.php
+++ b/app/Model/Board.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
use SimpleValidator\Validator;
use SimpleValidator\Validators;
diff --git a/app/Model/Category.php b/app/Model/Category.php
index f50c0f48..9cc2a193 100644
--- a/app/Model/Category.php
+++ b/app/Model/Category.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
use SimpleValidator\Validator;
use SimpleValidator\Validators;
diff --git a/app/Model/Color.php b/app/Model/Color.php
index 6df7beb8..4ded2e1e 100644
--- a/app/Model/Color.php
+++ b/app/Model/Color.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
/**
* Color model
diff --git a/app/Model/Comment.php b/app/Model/Comment.php
index c1c800c3..c7125a25 100644
--- a/app/Model/Comment.php
+++ b/app/Model/Comment.php
@@ -1,8 +1,8 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
-use Event\CommentEvent;
+use Kanboard\Event\CommentEvent;
use SimpleValidator\Validator;
use SimpleValidator\Validators;
diff --git a/app/Model/Config.php b/app/Model/Config.php
index bbc86a88..6561efc8 100644
--- a/app/Model/Config.php
+++ b/app/Model/Config.php
@@ -1,10 +1,10 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
-use Core\Translator;
-use Core\Security;
-use Core\Session;
+use Kanboard\Core\Translator;
+use Kanboard\Core\Security;
+use Kanboard\Core\Session;
/**
* Config model
diff --git a/app/Model/Currency.php b/app/Model/Currency.php
index d04df763..c1156610 100644
--- a/app/Model/Currency.php
+++ b/app/Model/Currency.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
use SimpleValidator\Validator;
use SimpleValidator\Validators;
diff --git a/app/Model/CustomFilter.php b/app/Model/CustomFilter.php
index b7ccdf99..6550b4a7 100644
--- a/app/Model/CustomFilter.php
+++ b/app/Model/CustomFilter.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
use SimpleValidator\Validator;
use SimpleValidator\Validators;
diff --git a/app/Model/DateParser.php b/app/Model/DateParser.php
index 002fc038..8159341d 100644
--- a/app/Model/DateParser.php
+++ b/app/Model/DateParser.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
use DateTime;
diff --git a/app/Model/EmailNotification.php b/app/Model/EmailNotification.php
index 39b60fc1..312828e4 100644
--- a/app/Model/EmailNotification.php
+++ b/app/Model/EmailNotification.php
@@ -1,8 +1,8 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
-use Core\NotificationInterface;
+use Kanboard\Core\NotificationInterface;
/**
* Email Notification model
diff --git a/app/Model/File.php b/app/Model/File.php
index 1d44a415..e4430217 100644
--- a/app/Model/File.php
+++ b/app/Model/File.php
@@ -1,10 +1,10 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
-use Event\FileEvent;
-use Core\Tool;
-use Core\ObjectStorage\ObjectStorageException;
+use Kanboard\Event\FileEvent;
+use Kanboard\Core\Tool;
+use Kanboard\Core\ObjectStorage\ObjectStorageException;
/**
* File model
diff --git a/app/Model/LastLogin.php b/app/Model/LastLogin.php
index dd64284e..f4be8a9d 100644
--- a/app/Model/LastLogin.php
+++ b/app/Model/LastLogin.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
/**
* LastLogin model
diff --git a/app/Model/Link.php b/app/Model/Link.php
index 467710bd..4e1b4e6b 100644
--- a/app/Model/Link.php
+++ b/app/Model/Link.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
use PDO;
use SimpleValidator\Validator;
diff --git a/app/Model/Notification.php b/app/Model/Notification.php
index 525e7f13..692f37a7 100644
--- a/app/Model/Notification.php
+++ b/app/Model/Notification.php
@@ -1,8 +1,8 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
-use Core\Translator;
+use Kanboard\Core\Translator;
/**
* Notification model
diff --git a/app/Model/NotificationFilter.php b/app/Model/NotificationFilter.php
index 62795512..f1ad367b 100644
--- a/app/Model/NotificationFilter.php
+++ b/app/Model/NotificationFilter.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
/**
* Notification Filter model
diff --git a/app/Model/NotificationType.php b/app/Model/NotificationType.php
index 3fd5c157..b0514b19 100644
--- a/app/Model/NotificationType.php
+++ b/app/Model/NotificationType.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
/**
* Notification Type model
diff --git a/app/Model/OverdueNotification.php b/app/Model/OverdueNotification.php
index 19bd0987..f44c8dd7 100644
--- a/app/Model/OverdueNotification.php
+++ b/app/Model/OverdueNotification.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
/**
* Task Overdue Notification model
diff --git a/app/Model/Project.php b/app/Model/Project.php
index 1bd5b624..b767af26 100644
--- a/app/Model/Project.php
+++ b/app/Model/Project.php
@@ -1,10 +1,10 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
use SimpleValidator\Validator;
use SimpleValidator\Validators;
-use Core\Security;
+use Kanboard\Core\Security;
/**
* Project model
diff --git a/app/Model/ProjectActivity.php b/app/Model/ProjectActivity.php
index a9222fcc..527abf58 100644
--- a/app/Model/ProjectActivity.php
+++ b/app/Model/ProjectActivity.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
/**
* Project activity model
diff --git a/app/Model/ProjectAnalytic.php b/app/Model/ProjectAnalytic.php
index dbca4eed..34d152d1 100644
--- a/app/Model/ProjectAnalytic.php
+++ b/app/Model/ProjectAnalytic.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
/**
* Project analytic model
diff --git a/app/Model/ProjectDailyColumnStats.php b/app/Model/ProjectDailyColumnStats.php
index 774ed7f9..2228dcf8 100644
--- a/app/Model/ProjectDailyColumnStats.php
+++ b/app/Model/ProjectDailyColumnStats.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
/**
* Project Daily Column Stats
diff --git a/app/Model/ProjectDailyStats.php b/app/Model/ProjectDailyStats.php
index 56a51730..b98c23ff 100644
--- a/app/Model/ProjectDailyStats.php
+++ b/app/Model/ProjectDailyStats.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
/**
* Project Daily Stats
diff --git a/app/Model/ProjectDuplication.php b/app/Model/ProjectDuplication.php
index 6e054a4b..f0c66834 100644
--- a/app/Model/ProjectDuplication.php
+++ b/app/Model/ProjectDuplication.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
/**
* Project Duplication
diff --git a/app/Model/ProjectIntegration.php b/app/Model/ProjectIntegration.php
index bcbfeae5..d07e4167 100644
--- a/app/Model/ProjectIntegration.php
+++ b/app/Model/ProjectIntegration.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
/**
* Project integration
diff --git a/app/Model/ProjectPermission.php b/app/Model/ProjectPermission.php
index c412b7a9..36987d47 100644
--- a/app/Model/ProjectPermission.php
+++ b/app/Model/ProjectPermission.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
use SimpleValidator\Validator;
use SimpleValidator\Validators;
diff --git a/app/Model/Subtask.php b/app/Model/Subtask.php
index 3c6269f1..bb6606b3 100644
--- a/app/Model/Subtask.php
+++ b/app/Model/Subtask.php
@@ -1,8 +1,8 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
-use Event\SubtaskEvent;
+use Kanboard\Event\SubtaskEvent;
use SimpleValidator\Validator;
use SimpleValidator\Validators;
diff --git a/app/Model/SubtaskExport.php b/app/Model/SubtaskExport.php
index 23dcc019..7c4e941d 100644
--- a/app/Model/SubtaskExport.php
+++ b/app/Model/SubtaskExport.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
/**
* Subtask Export
diff --git a/app/Model/SubtaskTimeTracking.php b/app/Model/SubtaskTimeTracking.php
index 4a18c8aa..86a4b213 100644
--- a/app/Model/SubtaskTimeTracking.php
+++ b/app/Model/SubtaskTimeTracking.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
use DateTime;
diff --git a/app/Model/Swimlane.php b/app/Model/Swimlane.php
index 06e879a4..1aa19fee 100644
--- a/app/Model/Swimlane.php
+++ b/app/Model/Swimlane.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
use SimpleValidator\Validator;
use SimpleValidator\Validators;
diff --git a/app/Model/Task.php b/app/Model/Task.php
index a1bbca93..f1cd094f 100644
--- a/app/Model/Task.php
+++ b/app/Model/Task.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
/**
* Task model
diff --git a/app/Model/TaskAnalytic.php b/app/Model/TaskAnalytic.php
index 33a645c1..c6d4191c 100644
--- a/app/Model/TaskAnalytic.php
+++ b/app/Model/TaskAnalytic.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
/**
* Task Analytic
diff --git a/app/Model/TaskCreation.php b/app/Model/TaskCreation.php
index 4373fa63..b6d8fbae 100644
--- a/app/Model/TaskCreation.php
+++ b/app/Model/TaskCreation.php
@@ -1,8 +1,8 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
-use Event\TaskEvent;
+use Kanboard\Event\TaskEvent;
/**
* Task Creation
diff --git a/app/Model/TaskDuplication.php b/app/Model/TaskDuplication.php
index 958b2b3e..60fcac0c 100755
--- a/app/Model/TaskDuplication.php
+++ b/app/Model/TaskDuplication.php
@@ -1,10 +1,10 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
use DateTime;
use DateInterval;
-use Event\TaskEvent;
+use Kanboard\Event\TaskEvent;
/**
* Task Duplication
diff --git a/app/Model/TaskExport.php b/app/Model/TaskExport.php
index 90aa1964..d38a5384 100644
--- a/app/Model/TaskExport.php
+++ b/app/Model/TaskExport.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
use PDO;
diff --git a/app/Model/TaskFilter.php b/app/Model/TaskFilter.php
index efd3be61..6500edda 100644
--- a/app/Model/TaskFilter.php
+++ b/app/Model/TaskFilter.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
/**
* Task Filter
diff --git a/app/Model/TaskFinder.php b/app/Model/TaskFinder.php
index 9e76e62e..9514fe4a 100644
--- a/app/Model/TaskFinder.php
+++ b/app/Model/TaskFinder.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
use PDO;
diff --git a/app/Model/TaskImport.php b/app/Model/TaskImport.php
index 2eb4eb8f..92c8f400 100644
--- a/app/Model/TaskImport.php
+++ b/app/Model/TaskImport.php
@@ -1,8 +1,8 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
-use Core\Csv;
+use Kanboard\Core\Csv;
use SimpleValidator\Validator;
use SimpleValidator\Validators;
diff --git a/app/Model/TaskLink.php b/app/Model/TaskLink.php
index 1c7d6287..fafcde65 100644
--- a/app/Model/TaskLink.php
+++ b/app/Model/TaskLink.php
@@ -1,10 +1,10 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
use SimpleValidator\Validator;
use SimpleValidator\Validators;
-use Event\TaskLinkEvent;
+use Kanboard\Event\TaskLinkEvent;
/**
* TaskLink model
diff --git a/app/Model/TaskModification.php b/app/Model/TaskModification.php
index b67106e1..9cca5b30 100644
--- a/app/Model/TaskModification.php
+++ b/app/Model/TaskModification.php
@@ -1,8 +1,8 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
-use Event\TaskEvent;
+use Kanboard\Event\TaskEvent;
/**
* Task Modification
diff --git a/app/Model/TaskPermission.php b/app/Model/TaskPermission.php
index e2420e10..501c8edc 100644
--- a/app/Model/TaskPermission.php
+++ b/app/Model/TaskPermission.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
/**
* Task permission model
diff --git a/app/Model/TaskPosition.php b/app/Model/TaskPosition.php
index 874633b1..1ad17b36 100644
--- a/app/Model/TaskPosition.php
+++ b/app/Model/TaskPosition.php
@@ -1,8 +1,8 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
-use Event\TaskEvent;
+use Kanboard\Event\TaskEvent;
/**
* Task Position
diff --git a/app/Model/TaskStatus.php b/app/Model/TaskStatus.php
index 23d77fa4..a5199ed9 100644
--- a/app/Model/TaskStatus.php
+++ b/app/Model/TaskStatus.php
@@ -1,8 +1,8 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
-use Event\TaskEvent;
+use Kanboard\Event\TaskEvent;
/**
* Task Status
diff --git a/app/Model/TaskValidator.php b/app/Model/TaskValidator.php
index 89c66f2f..683cb0b1 100644
--- a/app/Model/TaskValidator.php
+++ b/app/Model/TaskValidator.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
use SimpleValidator\Validator;
use SimpleValidator\Validators;
diff --git a/app/Model/Transition.php b/app/Model/Transition.php
index ac3fba54..b1f8f678 100644
--- a/app/Model/Transition.php
+++ b/app/Model/Transition.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
/**
* Transition model
diff --git a/app/Model/User.php b/app/Model/User.php
index 2b6436f8..138b77b2 100644
--- a/app/Model/User.php
+++ b/app/Model/User.php
@@ -1,11 +1,11 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
use SimpleValidator\Validator;
use SimpleValidator\Validators;
-use Core\Session;
-use Core\Security;
+use Kanboard\Core\Session;
+use Kanboard\Core\Security;
/**
* User model
diff --git a/app/Model/UserImport.php b/app/Model/UserImport.php
index 3d7c0feb..1a398d12 100644
--- a/app/Model/UserImport.php
+++ b/app/Model/UserImport.php
@@ -1,10 +1,10 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
use SimpleValidator\Validator;
use SimpleValidator\Validators;
-use Core\Csv;
+use Kanboard\Core\Csv;
/**
* User Import
diff --git a/app/Model/UserSession.php b/app/Model/UserSession.php
index 4c0364ce..56359bf2 100644
--- a/app/Model/UserSession.php
+++ b/app/Model/UserSession.php
@@ -1,8 +1,8 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
-use Core\Translator;
+use Kanboard\Core\Translator;
/**
* User Session
diff --git a/app/Model/WebNotification.php b/app/Model/WebNotification.php
index 4f4e8afb..02bcc956 100644
--- a/app/Model/WebNotification.php
+++ b/app/Model/WebNotification.php
@@ -1,8 +1,8 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
-use Core\NotificationInterface;
+use Kanboard\Core\NotificationInterface;
/**
* Web Notification model
diff --git a/app/Model/Webhook.php b/app/Model/Webhook.php
index e3af37f7..dd277bf8 100644
--- a/app/Model/Webhook.php
+++ b/app/Model/Webhook.php
@@ -1,6 +1,6 @@
<?php
-namespace Model;
+namespace Kanboard\Model;
/**
* Webhook model