Rename all models

This commit is contained in:
Frederic Guillot
2016-05-28 19:48:22 -04:00
parent 936376ffe7
commit 14713b0ec7
411 changed files with 4145 additions and 4156 deletions

View File

@@ -21,7 +21,7 @@ class UserHelper extends Base
*/
public function hasNotifications()
{
return $this->userUnreadNotification->hasNotifications($this->userSession->getId());
return $this->userUnreadNotificationModel->hasNotifications($this->userSession->getId());
}
/**
@@ -50,7 +50,7 @@ class UserHelper extends Base
*/
public function getFullname(array $user = array())
{
return $this->user->getFullname(empty($user) ? $this->userSession->getAll() : $user);
return $this->userModel->getFullname(empty($user) ? $this->userSession->getAll() : $user);
}
/**
@@ -157,7 +157,7 @@ class UserHelper extends Base
*/
public function getProjectUserRole($project_id)
{
return $this->memoryCache->proxy($this->projectUserRole, 'getUserRole', $project_id, $this->userSession->getId());
return $this->memoryCache->proxy($this->projectUserRoleModel, 'getUserRole', $project_id, $this->userSession->getId());
}
/**