当前位置: 首页>>代码示例>>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;未经允许,请勿转载。