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


PHP FB::LOG方法代码示例

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


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

示例1: checkContenuto4Utente

    public static function checkContenuto4Utente($userid, $contenutoid)
    {
        $groups = JAccess::getGroupsByUser($userid, true);
        $db = JFactory::getDBO();
        $query = '  
		SELECT count(*) as count
                FROM #__gg_contenuti_acl
                WHERE id_contenuto=' . $contenutoid . ' 
                and id_group in (' . implode(",", $groups) . ')';
        FB::LOG($query, "query checkContenuto4Utente");
        // FB::LOG($groups, "groups getTOTContenuti");
        $db->setQuery($query);
        $totgroups = $db->loadAssoc();
        FB::LOG($totgroups, "risultato checkContenuto4Utente");
        return $totgroups['count'];
    }
开发者ID:GGallery,项目名称:MDWEBTV-new,代码行数:16,代码来源:gglms.php

示例2: getTOTContenuti

    public static function getTOTContenuti($unit_id)
    {
        try {
            //verifica id unita se ha contenuti per ACL
            $user = JFactory::getUser();
            $userid = $user->get('id');
            // jimport( 'joomla.access.access' );
            //RICORSIVITA' GRUPPI
            //TRUE 	:Gruppi ricorsivi.
            //FALSE :Solo gruppi di diretta appartenenza
            $groups = JAccess::getGroupsByUser($userid, true);
            $totcontenuti = 0;
            $db = JFactory::getDBO();
            $query = '  
		SELECT count(*)
        FROM #__gg_unit_map as u
        LEFT JOIN #__gg_contenuti as c on c.id = u.idcontenuto 

        INNER Join #__gg_contenuti_acl AS acl ON acl.id_contenuto = c.id
		

        WHERE 
        	u.idunita =' . $unit_id . ' 
        	and c.pubblicato = 1
			and id_group in (' . implode(",", $groups) . ')	

        ORDER BY ordinamento
        ';
            FB::LOG($query, "query getTOTContenuti");
            // FB::LOG($groups, "groups getTOTContenuti");
            $db->setQuery($query);
            $totcontenuti = $db->loadResult();
            $subunit = gglmsHelper::getSubUnit($unit_id);
            foreach ($subunit as $unit) {
                $parziali = gglmsHelper::getTOTContenuti($unit['id']);
                $totcontenuti += $parziali;
            }
        } catch (Exception $e) {
        }
        FB::LOG($totcontenuti, "lista getTOTContenuti");
        return $totcontenuti;
    }
开发者ID:GGallery,项目名称:MDWEBTV-new,代码行数:42,代码来源:gglms.php


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