diff --git a/application/Models/Aauth/GroupModel.php b/application/Models/Aauth/GroupModel.php new file mode 100644 index 0000000..154c231 --- /dev/null +++ b/application/Models/Aauth/GroupModel.php @@ -0,0 +1,71 @@ +config = new AauthConfig(); + $this->table = $this->config->dbTableGroups; + $this->DBGroup = $this->config->dbProfile; + + $this->validationRules['name'] = 'required|is_unique[' . $this->table . '.name,id,{id}]'; + + $this->validationMessages = [ + 'name' => [ + 'required' => lang('Aauth.requiredPermName'), + 'is_unique' => lang('Aauth.existsAlreadyPerm'), + ], + ]; + } + +} diff --git a/application/Models/Aauth/LoginAttemptModel.php b/application/Models/Aauth/LoginAttemptModel.php index 7bf5940..f8631a6 100644 --- a/application/Models/Aauth/LoginAttemptModel.php +++ b/application/Models/Aauth/LoginAttemptModel.php @@ -28,6 +28,8 @@ use CodeIgniter\Database\ConnectionInterface; * Login Attempt caseModel * * @package CodeIgniter-Aauth + * + * @since 3.0.0 */ class LoginAttemptModel { diff --git a/application/Models/Aauth/LoginTokenModel.php b/application/Models/Aauth/LoginTokenModel.php index c23106b..398c885 100644 --- a/application/Models/Aauth/LoginTokenModel.php +++ b/application/Models/Aauth/LoginTokenModel.php @@ -27,6 +27,8 @@ use CodeIgniter\Database\ConnectionInterface; * Login Token Model * * @package CodeIgniter-Aauth + * + * @since 3.0.0 */ class LoginTokenModel { diff --git a/application/Models/Aauth/PermModel.php b/application/Models/Aauth/PermModel.php new file mode 100644 index 0000000..d007573 --- /dev/null +++ b/application/Models/Aauth/PermModel.php @@ -0,0 +1,71 @@ +config = new AauthConfig(); + $this->table = $this->config->dbTablePerms; + $this->DBGroup = $this->config->dbProfile; + + $this->validationRules['name'] = 'required|is_unique[' . $this->table . '.name,id,{id}]'; + + $this->validationMessages = [ + 'name' => [ + 'required' => lang('Aauth.requiredPermName'), + 'is_unique' => lang('Aauth.existsAlreadyPerm'), + ], + ]; + } + +} diff --git a/application/Models/Aauth/UserModel.php b/application/Models/Aauth/UserModel.php index 935bb0e..e1b66d5 100644 --- a/application/Models/Aauth/UserModel.php +++ b/application/Models/Aauth/UserModel.php @@ -24,6 +24,8 @@ use Config\Aauth as AauthConfig; * User Model * * @package CodeIgniter-Aauth + * + * @since 3.0.0 */ class UserModel extends Model { diff --git a/application/Models/Aauth/UserVariableModel.php b/application/Models/Aauth/UserVariableModel.php index 2b010a0..92dae69 100644 --- a/application/Models/Aauth/UserVariableModel.php +++ b/application/Models/Aauth/UserVariableModel.php @@ -27,6 +27,8 @@ use CodeIgniter\Database\ConnectionInterface; * User Variable Model. * * @package CodeIgniter-Aauth + * + * @since 3.0.0 */ class UserVariableModel {