本文整理汇总了PHP中obj::getArticleClass方法的典型用法代码示例。如果您正苦于以下问题:PHP obj::getArticleClass方法的具体用法?PHP obj::getArticleClass怎么用?PHP obj::getArticleClass使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类obj
的用法示例。
在下文中一共展示了obj::getArticleClass方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: nc_header
private function nc_header()
{
/*在导航的商品分类*/
$header_product_class = $this->obj_product_class->getSpecificClass(array('show_type' => 'header'));
$this->output('header_product_class', $header_product_class);
/*在导航的文章分类*/
$header_article_class = $this->obj_article_class->getArticleClass(array('article_class_menu' => 1));
$this->output('header_article_class', $header_article_class);
/*语言包选择*/
require_once "moduleLanguage.class.php";
$module_language = new ModuleLanguageClass();
$conditon_array = array();
$language_array = $module_language->getLanguageList($conditon_array);
$this->output('language_array', $language_array);
/*判断选中的语言包类型*/
if ($_SESSION['language'] != '') {
$language_ver = $_SESSION['language'];
} else {
$language_ver = $this->_configinfo['websit']['versionarea'];
}
$this->output('language_ver', $language_ver);
/*购物车*/
require_once "shopCart.class.php";
$shop_cart = new ShopCartClass();
$this->output('cart_count', $shop_cart->GoodsCount());
/*导航菜单选中*/
$show_menu = '';
$show_product_menu = '';
$show_article_menu = '';
$menu_name = basename($_SERVER['PHP_SELF']);
if ($menu_name == 'index.php') {
$show_menu = 'index';
} elseif ($menu_name == 'product_subject.php') {
$show_menu = 'subject';
} elseif ($menu_name == 'product_brand.php') {
$show_menu = 'brand';
} elseif ($menu_name == 'article_class.php') {
$show_article_menu = $this->_input['id'];
if ($show_article_menu == '') {
$show_article_menu = 'article';
}
} elseif ($menu_name == 'product_class.php') {
$show_product_menu = $this->_input['classid'];
}
$this->output('show_menu', $show_menu);
$this->output('show_product_menu', $show_product_menu);
$this->output('show_article_menu', $show_article_menu);
$this->showpage('header');
}
示例2: articleList
/**
* 文章内容分类列表
*
*/
private function articleList()
{
$condition['article_class_id'] = intval($this->_input['id']);
/*侧边文章分类*/
$class_array = $this->obj_show_class->getClass(array('article_class_topid' => $condition['article_class_id']));
$this->output('class_array', $class_array);
/*创建分页对象*/
require_once "commonpage.class.php";
$obj_page = new CommonPage();
$obj_page->pagebarnum(12);
$article_array = $this->obj_show_article->getArticleList($condition, $obj_page, array('article_commend desc,article_sort'));
$show_page = $obj_page->show(6);
$this->output('article_array', $article_array);
$this->output('show_page', $show_page);
/*当前分类信息*/
$class_info = $this->obj_show_class->getArticleClass(array('article_class_id' => intval($this->_input['id'])));
$article_class['title'] = $class_info[0]['article_class_name'];
$article_class['keywords'] = $class_info[0]['article_class_keywords'];
$article_class['description'] = $class_info[0]['article_class_description'];
$this->output('article_class', $article_class);
$this->showpage('article_list');
}