本文整理汇总了PHP中FSS_Settings::GetViewSettingsObj方法的典型用法代码示例。如果您正苦于以下问题:PHP FSS_Settings::GetViewSettingsObj方法的具体用法?PHP FSS_Settings::GetViewSettingsObj怎么用?PHP FSS_Settings::GetViewSettingsObj使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FSS_Settings
的用法示例。
在下文中一共展示了FSS_Settings::GetViewSettingsObj方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
function __construct()
{
parent::__construct();
$mainframe = JFactory::getApplication();
global $option;
$aparams = FSS_Settings::GetViewSettingsObj('kb');
$this->_enable_prod_pages = $aparams->get('main_prod_pages', 0);
if ($this->_enable_prod_pages == 1) {
$limit = $mainframe->getUserStateFromRequest('global.list.limit_prod', 'limit', FSS_Settings::Get('kb_prod_per_page'), 'int');
$limitstart = FSS_Input::getInt('limitstart');
// In case limit has been changed, adjust it
$limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0;
$this->setState('limit_prod', $limit);
$this->setState('limitstart', $limitstart);
}
$this->_enable_art_pages = $aparams->get('cat_art_pages', 0);
if ($this->_enable_art_pages == 1) {
$limit = $mainframe->getUserStateFromRequest('global.list.limit_art', 'limit', FSS_Settings::Get('kb_art_per_page'), 'int');
$limitstart = FSS_Input::getInt('limitstart');
// In case limit has been changed, adjust it
$limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0;
$this->setState('limit_art', $limit);
$this->setState('limitstart', $limitstart);
}
//$aparams = new stdClass();
}
示例2: display
function display($tpl = null)
{
FSS_Helper::StylesAndJS(array('accordion'));
$mainframe = JFactory::getApplication();
$user = JFactory::getUser();
$userid = $user->id;
$db = JFactory::getDBO();
$this->params = FSS_Settings::GetViewSettingsObj('test');
$this->test_show_prod_mode = $this->params->get('test_show_prod_mode', 'accordian');
$this->test_always_prod_select = $this->params->get('test_always_prod_select', '0');
$layout = FSS_Input::getCmd('layout');
$this->prodid = FSS_Input::getInt('prodid');
if ($this->prodid == "") {
$this->prodid = -1;
}
$this->products = $this->get('Products');
//print_p($this->products);
if (count($this->products) == 0) {
$this->prodid = 0;
}
$this->comments = new FSS_Comments("test", $this->prodid);
if ($this->prodid == -1) {
$this->comments->opt_show_posted_message_only = 1;
}
$onlyprodid = FSS_Input::getCmd('onlyprodid', 'x');
if ($onlyprodid != 'x' && $onlyprodid != -1) {
$this->comments->itemid = (int) $onlyprodid;
$this->comments->show_item_select = false;
}
if ($this->params->get('hide_add', 0)) {
$this->comments->can_add = 0;
}
if ($layout == "create") {
$this->setupCommentsCreate();
}
if ($this->comments->Process()) {
return;
}
if ($layout == "create") {
return $this->displayCreate();
}
if ($this->prodid != -1) {
return $this->displaySingleProduct();
}
return $this->displayAllProducts();
}
示例3: __construct
function __construct()
{
parent::__construct();
$mainframe = JFactory::getApplication();
global $option;
// Get pagination request variables
$aparams = FSS_Settings::GetViewSettingsObj('faqs');
$this->_enable_pages = $aparams->get('enable_pages', 1);
$limit = $mainframe->getUserStateFromRequest('global.list.limit', 'limit', FSS_Settings::Get('faq_per_page'), 'int');
if ($this->_enable_pages == 0) {
$limit = 999999;
}
$limitstart = FSS_Input::getInt('limitstart', 0);
// In case limit has been changed, adjust it
$limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0;
$this->setState('limit', $limit);
$this->setState('limitstart', $limitstart);
$this->_curcatid = FSS_Input::getInt('catid', '');
$this->_search = FSS_Input::getString('search', '');
$this->_catlist = $this->_getCatList();
if ($this->_search != "") {
$this->_curcattitle = JText::_("SEARCH_RESULTS");
$this->_curcatid = -1;
$this->_curcatimage = "/components/com_fss/assets/images/search.png";
} else {
if ($this->_curcatid == "0") {
$this->_curcattitle = JText::_("ALL_FAQS");
$this->_curcatimage = "/components/com_fss/assets/images/allfaqs.png";
} else {
foreach ($this->_catlist as $cat) {
if ($cat['id'] == $this->_curcatid) {
$this->_curcattitle = $cat['title'];
$this->_curcatimage = $cat['image'];
$this->_curcatdesc = $cat['description'];
}
}
}
}
}
示例4: searchArticles
function searchArticles()
{
$mainframe = JFactory::getApplication();
$aparams = FSS_Settings::GetViewSettingsObj('kb');
$search = FSS_Input::getString('kbsearch', '');
$prodid = FSS_Input::getInt('prodid');
$catid = FSS_Input::getInt('catid');
$this->assign('cat_art_pages', $aparams->get('cat_art_pages', 0));
$search = FSS_Input::getString('kbsearch');
$this->assign('view_mode', $aparams->get('cat_cat_arts'));
$document = JFactory::getDocument();
$document->setTitle(JText::_("KNOWLEDGE_BASE") . ' - ' . JText::_("SEARCH_RESULTS"));
$pagination = $this->get('ArtPaginationSearch');
$this->pagination = $pagination;
$this->assign('limit', $this->get("ArtLimit"));
$this->product = $this->get("Product");
$this->cat = $this->get("Cat");
$this->results = $this->get("ArtsWhat");
$this->search = $search;
$pathway = $mainframe->getPathway();
if (FSS_Helper::NeedBaseBreadcrumb($pathway, array('view' => 'kb'))) {
$pathway->addItem(JText::_('KNOWLEDGE_BASE'), FSSRoute::_('index.php?option=com_fss&view=kb'));
}
$pathway->addItem(JText::_("SEARCH_RESULTS"));
FSS_Helper::AllowCache();
parent::display("kbsearch");
}
示例5: listTags
function listTags()
{
$mainframe = JFactory::getApplication();
$aparams = FSS_Settings::GetViewSettingsObj('faqs');
$pathway = $mainframe->getPathway();
$pathway->addItem(JText::_("TAGS"));
$db = JFactory::getDBO();
$qry = "SELECT tag FROM #__fss_faq_tags ";
$qry .= ' WHERE language in (' . $db->Quote(JFactory::getLanguage()->getTag()) . ',' . $db->Quote('*') . ')';
$qry .= "GROUP BY tag ORDER BY tag";
$db->setQuery($qry);
$this->tags = $db->loadObjectList();
parent::display("tags");
}