• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP ComDefaultViewHtml类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中ComDefaultViewHtml的典型用法代码示例。如果您正苦于以下问题:PHP ComDefaultViewHtml类的具体用法?PHP ComDefaultViewHtml怎么用?PHP ComDefaultViewHtml使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了ComDefaultViewHtml类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: display

    public function display()
	{
		$modules = KFactory::get('com://admin/extensions.model.modules')->position('cpanel')->application('administrator')->enabled(1)->getList();
		$this->assign('modules', $modules);
        
		return parent::display();
	}
开发者ID:raeldc,项目名称:com_learn,代码行数:7,代码来源:html.php


示例2: display

    public function display()
    {
        $this->parameters = $this->getParameters();

        KFactory::get('joomla:document')->setTitle($this->parameters->get('page_title'));
        return parent::display();
    }
开发者ID:raeldc,项目名称:com_learn,代码行数:7,代码来源:html.php


示例3: display

 public function display()
 {
     $this->assign('sitebase', trim(JURI::root(), '/'));
     $this->assign('token', JUtility::getToken());
     $this->assign('container', $this->getModel()->getState()->container);
     return parent::display();
 }
开发者ID:janssit,项目名称:www.ondernemenddiest.be,代码行数:7,代码来源:html.php


示例4: display

	/**
	 * Return the views output
	 * 
	 * This function will auto assign the model data to the view if the auto_assign
	 * property is set to TRUE.
	 *
	 * @return string     The output of the view
	 */
	public function display()
	{
		$params = KFactory::get('joomla:application')->getParams();	
		$this->assign('params', $params);
		
		return parent::display();
	}
开发者ID:raeldc,项目名称:com_learn,代码行数:15,代码来源:html.php


示例5: display

    public function display()
    {
        $profiler = KFactory::get('com://admin/debug.profiler.events');
        $database = KFactory::get('com://admin/debug.profiler.queries');
        $language = KFactory::get('joomla:language');
        
        //Remove the template includes
        $includes = get_included_files();
        
        foreach($includes as $key => $value)
        {
            if($value == 'tmpl://koowa.template.stack') {
                unset($includes[$key]);
            }
        }
	    
	    $this->assign('memory'   , $profiler->getMemory())
	         ->assign('events'   , $profiler->getEvents())
	         ->assign('queries'  , $database->getQueries())
	         ->assign('languages', $language->getPaths())
	         ->assign('includes' , $includes)
	         ->assign('strings'  , $language->getOrphans());
                        
        return parent::display();
    }
开发者ID:raeldc,项目名称:com_learn,代码行数:25,代码来源:html.php


示例6: _initialize

    protected function _initialize(KConfig $config)
    {
        JSubMenuHelper::addEntry(JText::_('Newsfeeds'), 'index.php?option=com_newsfeeds&view=newsfeeds', true);
        JSubMenuHelper::addEntry(JText::_('Categories'), 'index.php?option=com_categories&view=categories&section=com_newsfeeds');

        parent::_initialize($config);
    }
开发者ID:raeldc,项目名称:com_learn,代码行数:7,代码来源:html.php


示例7: display

 public function display()
 {
     $targets = KFactory::tmp('site::com.stream.model.targets')->getList()->getData();
     $thing = reset($targets);
     $string = substr($thing['title'], 3);
     $option = strtolower(substr($string, 0, stripos($string, 'controller')));
     $view = strtolower(substr($string, stripos($string, 'controller') + 10));
     $model = KInflector::pluralize($view);
     $list = KFactory::tmp('site::com.' . $option . '.model.' . $model)->getList()->getData();
     $array = array();
     foreach ($list as $item) {
         $array[] = $item['id'];
     }
     //Get the list of posts
     $activities = KFactory::get($this->getModel())->set('parent_target_id', KRequest::get('get.parent_target_id', 'int'))->getList();
     $myactivities = array();
     foreach (@$activities as $activity) {
         if (!in_array($activity->parent_target_id, $array)) {
             continue;
         } else {
             $myactivities[] = $activity;
         }
     }
     $this->assign('myactivities', $myactivities);
     $this->assign('pagination', KFactory::get($this->getModel())->getState()->pagination);
     return parent::display();
 }
开发者ID:raeldc,项目名称:com_stream,代码行数:27,代码来源:html.php


示例8: display

 public function display()
 {
     $user = JFactory::getUser();
     $businesses = $this->getService('com://admin/businesses.model.businesses')->created_by($user->id)->getList();
     $this->assign('businesses', $businesses);
     return parent::display();
 }
开发者ID:janssit,项目名称:www.ondernemenddiest.be,代码行数:7,代码来源:html.php


示例9: display

 public function display()
 {
     $user = JFactory::getUser();
     $this->assign('user', $user);
     $this->assign('agent', $user->gid > 18);
     return parent::display();
 }
开发者ID:JSWebdesign,项目名称:intranet-platform,代码行数:7,代码来源:html.php


示例10: display

	public function display()
	{
		$state = $this->getModel()->getState();

		$folders = KFactory::get('com://admin/files.controller.folder')
			->container($state->container)
			->tree(true)
			->browse();

		$this->assign('folders', $folders);

		$config = KFactory::get('com://admin/files.model.configs')->getItem();

		// prepare an extensions array for fancyupload
		$extensions = $config->upload_extensions;

		$this->assign('allowed_extensions', $extensions);
		$this->assign('maxsize'           , $config->upload_maxsize);
		$this->assign('path'              , $state->container->relative_path);
		$this->assign('sitebase'          , ltrim(JURI::root(true), '/'));
		$this->assign('token'             , JUtility::getToken());
		$this->assign('session'           , JFactory::getSession());

		if (!$this->editor) {
			$this->assign('editor', '');
		}

		return parent::display();
	}
开发者ID:raeldc,项目名称:com_learn,代码行数:29,代码来源:html.php


示例11: display

 public function display()
 {
     $portal = $this->getModel()->getItem();
     header('X-Portal-ID: ' . $portal->id);
     $doc =& JFactory::getDocument();
     if ($portal->title) {
         $doc->setTitle($portal->title);
     }
     if ($portal->meta_keywords) {
         $doc->setMetaData('Keywords', $portal->meta_keywords);
     }
     if ($portal->meta_description) {
         $doc->setMetaData('Description', $portal->meta_description);
     }
     //TODO: Check if itemId
     $pathway = JFactory::getApplication()->getPathway();
     if (!JApplication::getInstance('site')->getMenu()->getItems('link', 'index.php?option=com_portals&view=portal&id=' . $portal->id, true)) {
         $category = $this->getService('com://site/portals.model.categories')->id($portal->portals_category_id)->getItem();
         if ($category->id) {
             $item = JApplication::getInstance('site')->getMenu()->getItems('link', 'index.php?option=com_portals&view=category&id=' . $category->id, true);
             if ($item) {
                 $i = 0;
                 foreach (explode('/', $item->route) as $part) {
                     $pathway->addItem(ucfirst($part), 'index.php?Itemid=' . $item->tree[$i]);
                     $i++;
                 }
             }
             $pathway->addItem($portal->title);
         }
     }
     return parent::display();
 }
开发者ID:kedweber,项目名称:com_portals,代码行数:32,代码来源:html.php


示例12: display

 /**
  * @return mixed
  */
 public function display()
 {
     $menu = JFactory::getApplication()->getMenu();
     $lang = JFactory::getLanguage();
     $category = $this->getModel()->getItem();
     $category->layout = end(explode(':', $category->layout));
     $this->setLayout($category->layout ? $category->layout : 'default');
     header('X-Category-ID: ' . $category->id);
     $doc =& JFactory::getDocument();
     if ($category->title) {
         $doc->setTitle($category->title);
     }
     if ($category->meta_keywords) {
         $doc->setMetaData('Keywords', $category->meta_keywords);
     }
     if ($category->meta_description) {
         $doc->setMetaData('Description', $category->meta_description);
     }
     if ($menu->getActive() == $menu->getDefault($lang->getTag()) || !$menu->getActive()) {
         $pathway = JFactory::getApplication()->getPathway();
         if (!JApplication::getInstance('site')->getMenu()->getItems('link', 'index.php?option=com_makundi&view=category&id=' . $category->id, true)) {
             foreach ($category->getAncestors(array('level' => 1)) as $ancestor) {
                 $item = JApplication::getInstance('site')->getMenu()->getItems('link', 'index.php?option=com_makundi&view=category&id=' . $ancestor->id, true);
                 if ($item) {
                     $i = 0;
                     foreach (explode('/', $item->route) as $part) {
                         $pathway->addItem(ucfirst($part), 'index.php?Itemid=' . $item->tree[$i]);
                         $i++;
                     }
                 } else {
                     if (!JSite::getMenu()->getActive()->id) {
                         $pathway->addItem($ancestor->title, JRoute::_('index.php?option=com_makundi&view=category&parent_slug_path=' . $ancestor->parent_slug_path . '&slug=' . $ancestor->slug));
                     }
                 }
             }
             $pathway->addItem($category->title);
         }
     }
     $descendants = array();
     $descendants[] = $category->id;
     $config = new KConfig();
     if ($params = $menu->getActive()->params) {
         $config->append($params->toArray());
     }
     if ($config->show_subcategories) {
         $descendants = array_merge($descendants, $category->getDescendants(array('level' => 1))->getColumn('id'));
     }
     $config->append(array('show_description' => 1, 'show_articles' => 1));
     // TODO: Set the limit default limit inside $category so we can make this more flexable.
     $limit = $this->getModel()->getState()->limit;
     if (!$limit) {
         $this->getModel()->getState()->limit = $config->limit;
     } else {
         $this->getModel()->getState()->limit = 4;
     }
     $this->assign('params', $config);
     $this->assign('parent', $this->getModel()->getItem()->getParent());
     $this->assign('descendants', $descendants);
     return parent::display();
 }
开发者ID:kedweber,项目名称:com_makundi,代码行数:63,代码来源:html.php


示例13: display

 public function display()
 {
     $app = JFactory::getApplication();
     $params = $app->getParams();
     $this->assign('params', $params);
     $this->assign('title', $params->get('page_title') ? $params->get('page_title') : JFactory::getDocument()->getTitle());
     return parent::display();
 }
开发者ID:ravenlife,项目名称:Portfolio,代码行数:8,代码来源:html.php


示例14: display

 public function display()
 {
     $title = JText::_('Login');
     JFactory::getApplication()->getPathway()->addItem($title);
     JFactory::getDocument()->setTitle($title);
     $this->parameters = $this->getParameters();
     return parent::display();
 }
开发者ID:raeldc,项目名称:nooku-server,代码行数:8,代码来源:html.php


示例15: _initialize

 protected function _initialize(KConfig $config)
 {
 	$config->append(array(
 		'template_url' => false
    	));
 	
 	parent::_initialize($config);
 }
开发者ID:raeldc,项目名称:com_learn,代码行数:8,代码来源:html.php


示例16: _initialize

    protected function _initialize(KConfig $config)
    {
        $config->append(array(
         	'layout'      => 'default'
        ));

        parent::_initialize($config);
    }
开发者ID:raeldc,项目名称:com_learn,代码行数:8,代码来源:html.php


示例17: display

 public function display()
 {
     $state = KFactory::get($this->getModel())->getState();
     $this->assign('target_type', $state->target_type);
     $this->assign('target_id', $state->target_id);
     $this->assign('return', $state->return);
     echo parent::display();
 }
开发者ID:raeldc,项目名称:com_comments,代码行数:8,代码来源:html.php


示例18: display

 public function display()
 {
     if ($this->getLayout() == 'default') {
         $model = $this->getService($this->getModel()->getIdentifier());
         $this->assign('packages', $model->distinct(true)->column('package')->getList());
     }
     return parent::display();
 }
开发者ID:JSWebdesign,项目名称:intranet-platform,代码行数:8,代码来源:html.php


示例19: display

 public function display()
 {
     $group = $this->getModel()->getState()->group;
     $this->groups = $this->getService('com://admin/cache.model.groups')->getList();
     $this->size = !empty($group) ? $this->groups->find($group)->size : $this->groups->size;
     $this->count = !empty($group) ? $this->groups->find($group)->count : $this->groups->count;
     return parent::display();
 }
开发者ID:raeldc,项目名称:nooku-server,代码行数:8,代码来源:html.php


示例20: display

 public function display()
 {
     $name = $this->getName();
     //Append enable and disbale button for all the list views
     if ($name != 'dashboard' && KInflector::isPlural($name) && KRequest::type() != 'AJAX') {
         KFactory::get('admin::com.error.toolbar.' . $name)->append('divider')->append('enable')->append('disable');
     }
     return parent::display();
 }
开发者ID:raeldc,项目名称:com_stream,代码行数:9,代码来源:html.php



注:本文中的ComDefaultViewHtml类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP ComSessionNamespace类代码示例发布时间:2022-05-23
下一篇:
PHP ColumnMap类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap