summaryrefslogtreecommitdiff
path: root/html/app/extends/Classroom_user.php
diff options
context:
space:
mode:
Diffstat (limited to 'html/app/extends/Classroom_user.php')
-rw-r--r--html/app/extends/Classroom_user.php88
1 files changed, 0 insertions, 88 deletions
diff --git a/html/app/extends/Classroom_user.php b/html/app/extends/Classroom_user.php
deleted file mode 100644
index 1c26e73..0000000
--- a/html/app/extends/Classroom_user.php
+++ /dev/null
@@ -1,88 +0,0 @@
-<?php
-namespace app\extends;
-
-use User;
-use Registry;
-
-
-/** Classroom_user
- *
- * extends (anom's) User
- *
- * this way it specializes the UserManagement
- * according to this app's special rules
- *
- * Add privileges concept
- * ---
- * A Class_user has privileges (which are deferent than Roles)
- * In fact, privileges extend the authorization requirements for users
- *
- * Authorized content is marked with some 'minimum Privilege'
- * So the content is available to the READER(s) that have certain Privileges
- *
- */
-class Classroom_user extends User
-{
-
- /** user id
- * @var int
- */
- private $id;
-
- /** user privileges
- * @var array
- */
- private $privileges = [];
-
-
- /** SETTERS AND GETTERS
- * for id and privileges attributes
- * -------------------------------------------------------------------------
- */
-
- /** getID
- * @return int
- */
- public function getID(): int
- {
- return $this->id;
- }
-
- /** setID()
- *
- * @param int : user id
- *
- * @return User
- */
- public function setID(int $id): self
- {
- $this->id = $id;
- return $this;
- }
-
-
-
- /** getPrivileges
- *
- * @return privileges (array)
- */
- public function getPrivileges(): array
- {
- return $this->privileges;
- }
-
-
- /** setPrivileges()
- *
- * @param array $privileges
- *
- * @return User
- */
- public function setPrivileges(array $privileges): self
- {
- $this->privileges = $privileges;
- return $this;
- }
-
-
-} \ No newline at end of file