Пример #1
0
 public function testreloadPreferences()
 {
     $user = new User();
     $user->retrieve('1');
     $userPreference = new UserPreference($user);
     $result = $userPreference->reloadPreferences();
     $this->assertEquals(false, $result);
 }
Пример #2
0
 /**
  * Unconditionally reloads user preferences from the DB and updates the session
  * @param string $category name of the category to retreive, defaults to global scope
  * @return bool successful?
  */
 public function reloadPreferences($category = 'global')
 {
     return $this->_userPreferenceFocus->reloadPreferences($category = 'global');
 }