Rename base validator class
This commit is contained in:
@@ -8,10 +8,10 @@ use SimpleValidator\Validators;
|
|||||||
/**
|
/**
|
||||||
* Action Validator
|
* Action Validator
|
||||||
*
|
*
|
||||||
* @package validator
|
* @package Kanboard\Validator
|
||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
*/
|
*/
|
||||||
class ActionValidator extends Base
|
class ActionValidator extends BaseValidator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Validate action creation
|
* Validate action creation
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ use Gregwar\Captcha\CaptchaBuilder;
|
|||||||
/**
|
/**
|
||||||
* Authentication Validator
|
* Authentication Validator
|
||||||
*
|
*
|
||||||
* @package validator
|
* @package Kanboard\Validator
|
||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
*/
|
*/
|
||||||
class AuthValidator extends Base
|
class AuthValidator extends BaseValidator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Validate user login form
|
* Validate user login form
|
||||||
|
|||||||
@@ -2,15 +2,16 @@
|
|||||||
|
|
||||||
namespace Kanboard\Validator;
|
namespace Kanboard\Validator;
|
||||||
|
|
||||||
|
use Kanboard\Core\Base;
|
||||||
use SimpleValidator\Validators;
|
use SimpleValidator\Validators;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base Validator
|
* Base Validator
|
||||||
*
|
*
|
||||||
* @package validator
|
* @package Kanboard\Validator
|
||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
*/
|
*/
|
||||||
class Base extends \Kanboard\Core\Base
|
abstract class BaseValidator extends Base
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Execute multiple validators
|
* Execute multiple validators
|
||||||
@@ -8,10 +8,10 @@ use SimpleValidator\Validators;
|
|||||||
/**
|
/**
|
||||||
* Category Validator
|
* Category Validator
|
||||||
*
|
*
|
||||||
* @package validator
|
* @package Kanboard\Validator
|
||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
*/
|
*/
|
||||||
class CategoryValidator extends Base
|
class CategoryValidator extends BaseValidator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Validate category creation
|
* Validate category creation
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ use SimpleValidator\Validators;
|
|||||||
/**
|
/**
|
||||||
* Column Validator
|
* Column Validator
|
||||||
*
|
*
|
||||||
* @package validator
|
* @package Kanboard\Validator
|
||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
*/
|
*/
|
||||||
class ColumnValidator extends Base
|
class ColumnValidator extends BaseValidator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Validate column modification
|
* Validate column modification
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ use SimpleValidator\Validators;
|
|||||||
/**
|
/**
|
||||||
* Comment Validator
|
* Comment Validator
|
||||||
*
|
*
|
||||||
* @package validator
|
* @package Kanboard\Validator
|
||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
*/
|
*/
|
||||||
class CommentValidator extends Base
|
class CommentValidator extends BaseValidator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Validate comment creation
|
* Validate comment creation
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ use SimpleValidator\Validators;
|
|||||||
/**
|
/**
|
||||||
* Currency Validator
|
* Currency Validator
|
||||||
*
|
*
|
||||||
* @package validator
|
* @package Kanboard\Validator
|
||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
*/
|
*/
|
||||||
class CurrencyValidator extends Base
|
class CurrencyValidator extends BaseValidator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Validate
|
* Validate
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ use SimpleValidator\Validators;
|
|||||||
/**
|
/**
|
||||||
* Custom Filter Validator
|
* Custom Filter Validator
|
||||||
*
|
*
|
||||||
* @package validator
|
* @package Kanboard\Validator
|
||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
*/
|
*/
|
||||||
class CustomFilterValidator extends Base
|
class CustomFilterValidator extends BaseValidator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Common validation rules
|
* Common validation rules
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ use SimpleValidator\Validators;
|
|||||||
/**
|
/**
|
||||||
* External Link Validator
|
* External Link Validator
|
||||||
*
|
*
|
||||||
* @package validator
|
* @package Kanboard\Validator
|
||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
*/
|
*/
|
||||||
class ExternalLinkValidator extends Base
|
class ExternalLinkValidator extends BaseValidator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Validate creation
|
* Validate creation
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ use Kanboard\Model\GroupModel;
|
|||||||
/**
|
/**
|
||||||
* Group Validator
|
* Group Validator
|
||||||
*
|
*
|
||||||
* @package validator
|
* @package Kanboard\Validator
|
||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
*/
|
*/
|
||||||
class GroupValidator extends Base
|
class GroupValidator extends BaseValidator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Validate creation
|
* Validate creation
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ use Kanboard\Model\LinkModel;
|
|||||||
/**
|
/**
|
||||||
* Link Validator
|
* Link Validator
|
||||||
*
|
*
|
||||||
* @package validator
|
* @package Kanboard\Validator
|
||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
*/
|
*/
|
||||||
class LinkValidator extends Base
|
class LinkValidator extends BaseValidator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Validate creation
|
* Validate creation
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ use Gregwar\Captcha\CaptchaBuilder;
|
|||||||
/**
|
/**
|
||||||
* Password Reset Validator
|
* Password Reset Validator
|
||||||
*
|
*
|
||||||
* @package validator
|
* @package Kanboard\Validator
|
||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
*/
|
*/
|
||||||
class PasswordResetValidator extends Base
|
class PasswordResetValidator extends BaseValidator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Validate creation
|
* Validate creation
|
||||||
@@ -87,6 +87,6 @@ class PasswordResetValidator extends Base
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return array($result, $errors);;
|
return array($result, $errors);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ use Kanboard\Model\ProjectModel;
|
|||||||
/**
|
/**
|
||||||
* Project Validator
|
* Project Validator
|
||||||
*
|
*
|
||||||
* @package validator
|
* @package Kanboard\Validator
|
||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
*/
|
*/
|
||||||
class ProjectValidator extends Base
|
class ProjectValidator extends BaseValidator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Common validation rules
|
* Common validation rules
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ use SimpleValidator\Validators;
|
|||||||
/**
|
/**
|
||||||
* Subtask Validator
|
* Subtask Validator
|
||||||
*
|
*
|
||||||
* @package validator
|
* @package Kanboard\Validator
|
||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
*/
|
*/
|
||||||
class SubtaskValidator extends Base
|
class SubtaskValidator extends BaseValidator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Validate creation
|
* Validate creation
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ use SimpleValidator\Validators;
|
|||||||
/**
|
/**
|
||||||
* Swimlane Validator
|
* Swimlane Validator
|
||||||
*
|
*
|
||||||
* @package validator
|
* @package Kanboard\Validator
|
||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
*/
|
*/
|
||||||
class SwimlaneValidator extends Base
|
class SwimlaneValidator extends BaseValidator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Validate creation
|
* Validate creation
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ use Kanboard\Model\TaskModel;
|
|||||||
/**
|
/**
|
||||||
* Task Link Validator
|
* Task Link Validator
|
||||||
*
|
*
|
||||||
* @package validator
|
* @package Kanboard\Validator
|
||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
*/
|
*/
|
||||||
class TaskLinkValidator extends Base
|
class TaskLinkValidator extends BaseValidator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Common validation rules
|
* Common validation rules
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ use SimpleValidator\Validators;
|
|||||||
/**
|
/**
|
||||||
* Task Validator
|
* Task Validator
|
||||||
*
|
*
|
||||||
* @package validator
|
* @package Kanboard\Validator
|
||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
*/
|
*/
|
||||||
class TaskValidator extends Base
|
class TaskValidator extends BaseValidator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Common validation rules
|
* Common validation rules
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ use Kanboard\Model\UserModel;
|
|||||||
/**
|
/**
|
||||||
* User Validator
|
* User Validator
|
||||||
*
|
*
|
||||||
* @package validator
|
* @package Kanboard\Validator
|
||||||
* @author Frederic Guillot
|
* @author Frederic Guillot
|
||||||
*/
|
*/
|
||||||
class UserValidator extends Base
|
class UserValidator extends BaseValidator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Common validation rules
|
* Common validation rules
|
||||||
|
|||||||
Reference in New Issue
Block a user