public function loadRoleToSession() { $arr = $this->getAll(); //$_SESSION['listOfRoles'] = $arr; foreach ($arr as $role) { Registor::addRole($role); } }