當前位置: 首頁>>代碼示例>>PHP>>正文


PHP UserSettings::getSetting方法代碼示例

本文整理匯總了PHP中UserSettings::getSetting方法的典型用法代碼示例。如果您正苦於以下問題:PHP UserSettings::getSetting方法的具體用法?PHP UserSettings::getSetting怎麽用?PHP UserSettings::getSetting使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在UserSettings的用法示例。


在下文中一共展示了UserSettings::getSetting方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: create

 /**
  * Creates a new overview event.
  * 
  * @param	int		ovent type id
  * @param	int		time
  * @param	mixed	event id (may be null)
  * @param	int		relational id
  * @param	array	additional fields
  * @param	bool	checked
  * @param	mixed	data
  * @return	Ovent
  */
 public static function create($oventTypeID, $time, $eventID, $relationalID, $additionalFields = array(), $checked = 0, $data = array())
 {
     if (!is_array($data)) {
         $data = array($data);
     }
     $oventID = self::insert($oventTypeID, $time, $eventID, $relationalID, $additionalFields, $checked, $data);
     $oventObj = Ovent::getByOventID($oventID);
     if (isset($additionalFields['userID']) && UserSettings::getSetting($additionalFields['userID'], 'hideOventType' . $oventTypeID)) {
         $oventObj->getEditor()->check();
     }
     return $oventObj;
 }
開發者ID:sonicmaster,項目名稱:RPG,代碼行數:24,代碼來源:OventEditor.class.php

示例2: UserSettings

/**COPYRIGHTS**/
/**
 * OfflineContacts post configuration
 * Here we update the Tabs
 * If google gear is turn on we link the Contacts tab 
 * to the ggears_contacts.
 *
 * @package OfflineContacts
 * @author Philippe Lewicki <phil@sqlfusion.com>
 * @license ##License##
 * @version 0.1
 * @date 2010-09-04  
 */
if (isset($_SESSION['do_User'])) {
    $user_settings = new UserSettings();
    if ($user_settings->getSetting("google_gears") == "Yes") {
        if ($GLOBALS['cfg_tab_placement']->count() > 0) {
            $new_tabs = new ArrayIterator();
            $GLOBALS['cfg_tab_placement']->rewind();
            while ($GLOBALS['cfg_tab_placement']->valid()) {
                $tab = $GLOBALS['cfg_tab_placement']->current();
                if ($tab->getTabName() == _('Contacts')) {
                    // uncomment the setPlugInName to link to the plugIn Folder.
                    $tab->setPlugInName("OfflineContacts");
                    $tab->setTabName("Contacts Offline")->setPages(array("ggears_contacts"))->setDefaultPage("ggears_contacts");
                }
                $GLOBALS['cfg_tab_placement']->next();
            }
        }
    }
}
開發者ID:jacquesbagui,項目名稱:ofuz,代碼行數:31,代碼來源:OfflineContacts.postconf.stop.inc.php

示例3: _

?>
</div>
        <div class="banner50 pad020 text16 fuscia_text"><?php 
echo _('Google Gears Setup');
?>
</div>
        <div class="contentfull">
        <?php 
$UserSettings = new UserSettings();
$e_set_ggear = new Event("UserSettings->eventSetSetting");
$e_set_ggear->addParam("goto", $_SERVER['PHP_SELF']);
$e_set_ggear->addParam("setting_name", "google_gears");
echo '<div class="messageshadow">';
echo '<div class="messages">';
$msg = new Message();
if ($UserSettings->getSetting("google_gears") == 'Yes') {
    echo $msg->getMessage('google_gears');
    echo '<br />';
    $e_set_ggear->addParam("setting_value", "No");
    echo $e_set_ggear->getLink(_('Turn Off'));
} else {
    echo $msg->getMessage('google_gears');
    echo '<br />';
    $e_set_ggear->addParam("setting_value", "Yes");
    echo $e_set_ggear->getLink(_('Turn On'));
}
echo '</div></div>';
echo '<br />';
?>
        </div>
        <div class="solidline"></div>
開發者ID:jacquesbagui,項目名稱:ofuz,代碼行數:31,代碼來源:settings_ggears.php


注:本文中的UserSettings::getSetting方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。