From 3faaec3474fa36093594e6626c15288f26f64101 Mon Sep 17 00:00:00 2001 From: Jarrett Jordaan Date: Tue, 9 Mar 2010 09:09:18 +0200 Subject: [PATCH] PT-2378610 : Redundant user preference admin section. --- plugins/user-preferences/manageUserPreferences.php | 103 ------------------------------------------------------------------------------------------------------- 1 file changed, 0 insertions(+), 103 deletions(-) delete mode 100644 plugins/user-preferences/manageUserPreferences.php diff --git a/plugins/user-preferences/manageUserPreferences.php b/plugins/user-preferences/manageUserPreferences.php deleted file mode 100644 index a9c7229..0000000 --- a/plugins/user-preferences/manageUserPreferences.php +++ /dev/null @@ -1,103 +0,0 @@ -oUser->getId(), 'zohoWarning'); // Get user preference - if(empty($aUserPreference) || is_null($aUserPreference)) { // Create the prefernce - $oUserPreference = new UserPreferences( $this->oUser->getId(), 'zohoWarning', $sValue); - DBUtil::startTransaction(); - $oUserPreference->create(); - DBUtil::commit(); - } else { - foreach ($aUserPreference as $oUserPreference) { // Access object - if($oUserPreference->getValue() != $sValue) { // Update preference - $oUserPreference->setValue($sValue); - DBUtil::startTransaction(); - $oUserPreference->update(); - DBUtil::commit(); - } - } - } - } - exit(); - } - - public function do_setPreference($sKey, $sValue) { - - } -} - -class adminManageUserPreferencesDispatcher extends ManageUserPreferencesDispatcher { - var $bAdminRequired = true; - var $sSection = 'administration'; - - function adminManageUserPreferencesDispatcher() { - $this->aBreadcrumbs = array(array('action' => 'administration', 'name' => _kt('Administration')),); - - return parent::KTStandardDispatcher(); - } -} - -class manageUserPreferencesNavigationPortlet extends KTPortlet { - var $bActive = true; - - function manageUserPreferencesNavigationPortlet($sTitle) { - parent::KTPortlet($sTitle); - } -} - -?> -- libgit2 0.21.4