Skip to content

Commit

Permalink
refs #1067 : delete - deprecated codes.
Browse files Browse the repository at this point in the history
  • Loading branch information
inureyes committed Jul 8, 2015
1 parent ecb6e7f commit ecdf73a
Showing 1 changed file with 0 additions and 61 deletions.
61 changes: 0 additions & 61 deletions library/model/common/setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,67 +3,6 @@
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)

//global $userSetting;
//$userSetting = array();

/* TO BE DEPRECATED SINCE 1.9
function clearServiceSettingCache() {
global $__serviceSetting;
if( !empty($__serviceSetting) ) {
$__serviceSetting = array();
}
}
function clearUserSettingCache() {
global $userSetting;
if( !empty($userSetting) ) {
$userSetting = array();
}
}
function getServiceSetting($name, $default = null) {
return Setting::getServiceSetting($name, $default, true);
}
function setServiceSetting($name, $value) {
return Setting::setServiceSettingGlobal($name, $value);
}
function removeServiceSetting($name,$pruneSimilarEntries = false) {
global $database;
clearServiceSettingCache();
if($pruneSimilarEntries) return POD::execute("DELETE FROM {$database['prefix']}ServiceSettings WHERE name like '".POD::escapeString($name)."'");
else return POD::execute("DELETE FROM {$database['prefix']}ServiceSettings WHERE name = '".POD::escapeString($name)."'");
}
function getBlogSetting($name, $default = null, $blogid = null) {
return Setting::getBlogSettingGlobal($name, $default);
}
function setBlogSetting($name, $value, $blogid = null) {
return Setting::setBlogSettingGlobal($name, $value, $blogid);
}
function setBlogSettingDefault($name, $value, $blogid = null) {
return Setting::setBlogSettingDefault($name, $value, $blogid);
}
function removeBlogSetting($name, $blogid = null) {
return Setting::removeBlogSettingGlobal($name, $blogid);
}
function getUserSetting($name, $default = null, $userid = null) {
return Setting::getUserSettingGlobal($name, $default, $userid);
}
function setUserSetting($name, $value, $userid = null) {
return Setting::setUserSettingGlobal($name, $value, $userid);
}
function removeUserSetting($name, $userid = null) {
return Setting::removeUserSettingGlobal($name, $userid);
}
*/
function getDefinedTableNames() {
$context = Model_Context::getInstance();
$prefix = $context->getProperty('database.prefix');
Expand Down

0 comments on commit ecdf73a

Please sign in to comment.