1 | <?php |
||
19 | class AdminCore extends UserCore |
||
20 | { |
||
21 | const ROOT_PROILE_ID = 1; |
||
22 | |||
23 | /** |
||
24 | * Admins'levels. |
||
25 | * |
||
26 | * @return bool |
||
27 | */ |
||
28 | public static function auth() |
||
36 | |||
37 | /** |
||
38 | * Determines if the ID is from Root Admin (main admin). |
||
39 | * |
||
40 | * @param integer $iProfileId |
||
41 | * |
||
42 | * @return bool |
||
43 | */ |
||
44 | public static function isRootProfileId($iProfileId) |
||
48 | |||
49 | /** |
||
50 | * @param AdminCoreModel $oAdminModel |
||
51 | * |
||
52 | * @return bool TRUE if the IP is the one the site was installed, FALSE otherwise. |
||
53 | */ |
||
54 | public static function isAdminIp(AdminCoreModel $oAdminModel) |
||
58 | |||
59 | /** |
||
60 | * Set an admin authentication. |
||
61 | * |
||
62 | * @param stdClass $oAdminData User database object. |
||
63 | * @param UserCoreModel $oAdminModel |
||
64 | * @param Session $oSession |
||
65 | * @param SecurityModel $oSecurityModel |
||
66 | * |
||
67 | * @return void |
||
68 | */ |
||
69 | public function setAuth(stdClass $oAdminData, UserCoreModel $oAdminModel, Session $oSession, SecurityModel $oSecurityModel) |
||
92 | } |
||
93 |