Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
193 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php | ||
|
||
namespace app\modules\user\components; | ||
|
||
interface AuthRoleModelInterface | ||
{ | ||
/** | ||
* @param mixed $id | ||
* @return AuthRoleModelInterface | ||
*/ | ||
public static function findAuthRoleIdentity($id); | ||
|
||
/** | ||
* @param string $roleName | ||
* @return array | ||
*/ | ||
public static function findAuthIdsByRoleName($roleName); | ||
|
||
/** | ||
* @param string $oldRoleName | ||
* @param string $newRoleName | ||
*/ | ||
public static function updateAuthGlobalRoleName($oldRoleName, $newRoleName); | ||
|
||
/** | ||
* @param string $roleName | ||
*/ | ||
public static function removeAuthGlobalRoleName($roleName); | ||
|
||
/** | ||
* On all roles removing | ||
*/ | ||
public static function removeAuthGlobalRoleNames(); | ||
|
||
/** | ||
* On all assignments removing | ||
*/ | ||
public static function removeAuthGlobalAssignments(); | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getAuthRoleNames(); | ||
|
||
/** | ||
* @param string $roleName | ||
*/ | ||
public function addAuthRoleName($roleName); | ||
|
||
/** | ||
* @param string $roleName | ||
*/ | ||
public function removeAuthRoleName($roleName); | ||
|
||
/** | ||
* Removes all roles | ||
*/ | ||
public function clearAuthRoleNames(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters