当前位置: 首页>>代码示例>>PHP>>正文


PHP FB::exception方法代码示例

本文整理汇总了PHP中FB::exception方法的典型用法代码示例。如果您正苦于以下问题:PHP FB::exception方法的具体用法?PHP FB::exception怎么用?PHP FB::exception使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FB的用法示例。


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

示例1: content_type

    public static function content_type()
    {
        try {
            $db = JFactory::getDBO();
            $query = '  
			select 
            	 *
			from (
				SELECT *
				FROM 
                            #__gg_contenuti_tipology
                            where pubblicato = 1

				UNION ALL

				SELECT *
				FROM 
                            #__gg_unit_tipology
				) as tutti
ORDER BY ordinamento
';
            FB::log($query, "query typology");
            $db->setQuery($query);
            if (false === ($results = $db->loadObjectList())) {
                throw new RuntimeException($this->_db->getErrorMsg(), E_USER_ERROR);
            }
            FB::log($results, 'contenttype');
            return $results;
        } catch (Exception $e) {
            FB::exception($e);
        }
    }
开发者ID:GGallery,项目名称:MDWEBTV-new,代码行数:32,代码来源:gglms.php

示例2: searchCountAttributes4filters

   public function searchCountAttributes4filters($idList) {
    try {

//RS count livello
        $queryLivello = '
        select livello,count(*)as count 
        FROM `vxvos_gg_contenuti` as c
        where id in ('.$idList.')
        group by livello';
        
FB::log($queryLivello, "query  livello searchCountAttributes4filters ");
$this->_db->setQuery($queryLivello);

if (false === ($counterslistlivello = $this->_db->loadAssocList()))
    throw new RuntimeException($this->_db->getErrorMsg(), E_USER_ERROR);


            // FB::log($contents);
FB::log($counterslistlivello, " counterslistlivello");
$counterslist[livello]=$counterslistlivello;


//RS count Area
        $queryArea = 'select area,count(*)as count 
        FROM `vxvos_gg_contenuti` as c
        where id in ('.$idList.')
        group by area';


FB::log($queryArea, "query  area searchCountAttributes4filters ");
$this->_db->setQuery($queryArea);

if (false === ($counterslistarea = $this->_db->loadAssocList()))
    throw new RuntimeException($this->_db->getErrorMsg(), E_USER_ERROR);


            // FB::log($contents);
FB::log($counterslistarea, " counterslistarea");
$counterslist[area]=$counterslistarea;


//RS count formato

        $queryFormato = '
        
            SELECT form.formato,count(*) as count
            FROM `vxvos_gg_contenuti` as c
            JOIN vxvos_gg_formati_contenuti_map as formmap on c.id = formmap.idcontenuto
            JOIN vxvos_gg_formati  as form on form.id= formmap.idformato 
            where c.id in ('.$idList.')
            group by form.formato';

FB::log($queryFormato, "query  formato  searchCountAttributes4filters ");
$this->_db->setQuery($queryFormato);

if (false === ($counterslistformato = $this->_db->loadAssocList()))
    throw new RuntimeException($this->_db->getErrorMsg(), E_USER_ERROR);


            // FB::log($contents);
FB::log($counterslistformato, " counterslistformato");


$counterslist[formato]=$counterslistformato;


//RS count prodotto

        $queryProdotto = '
        SELECT prod.prodotto,count(*) as count
            FROM `vxvos_gg_contenuti` as c
            JOIN vxvos_gg_prodotti_contenuti_map as prodmap on c.id = prodmap.idcontenuto
            JOIN vxvos_gg_prodotti  as prod on prod.id= prodmap.idprodotto 
            where c.id in ('.$idList.') 
            group by prod.prodotto';


FB::log($queryProdotto, "query  prodotto searchCountAttributes4filters ");
$this->_db->setQuery($queryProdotto);

if (false === ($counterslistprodotto = $this->_db->loadAssocList()))
    throw new RuntimeException($this->_db->getErrorMsg(), E_USER_ERROR);


            // FB::log($contents);
FB::log($counterslistprodotto, " counterslistprodotto");
$counterslist[prodotto]=$counterslistprodotto;



FB::log($counterslist, " counterslist totale");
return $counterslist;


} catch (Exception $e) {
    FB::exception($e);
}
}
开发者ID:GGallery,项目名称:MDWEBTV-new,代码行数:98,代码来源:search.php


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