當前位置: 首頁>>代碼示例>>PHP>>正文


PHP debug::msg方法代碼示例

本文整理匯總了PHP中debug::msg方法的典型用法代碼示例。如果您正苦於以下問題:PHP debug::msg方法的具體用法?PHP debug::msg怎麽用?PHP debug::msg使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在debug的用法示例。


在下文中一共展示了debug::msg方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getAllContents

 protected function getAllContents($data)
 {
     $db = JFactory::getDBO();
     $query = $db->getQuery(true);
     $query->select('distinct p.idcontenuto AS idcontenuto, c.titolo as titolo, c.descrizione as descrizione ');
     $query->from('#__gg_palinsesti as p ');
     $query->join('left', '#__gg_contenuti as c ON c.id = p.idcontenuto ');
     $query->where('idcontenuto not in (select idcontenuto from #_tv_palinsesti where datapalinsesto = "' . $data . '" )');
     $query->order('datapalinsesto desc, ordinamento ');
     debug::msg((string) $query);
     $db->setQuery((string) $query, 0, 20);
     $res = $db->loadAssocList();
     return $res;
 }
開發者ID:GGallery,項目名稱:MDWEBTV-new,代碼行數:14,代碼來源:palinsesto.php

示例2: _processor

 public function _processor($options = false)
 {
     if (is_array($options)) {
         $options = (object) $options;
     }
     $force_json = gettype($options) == 'object' && isset($options->force_json) && $options->force_json ? true : false;
     $force_stop = gettype($options) == 'object' && isset($options->force_stop) && $options->force_stop ? true : false;
     $not_redirect = gettype($options) == 'object' && isset($options->not_redirect) && $options->not_redirect ? true : false;
     if ($this->transaction && debug::$status) {
         if (isset($this->sql)) {
             $this->sql->commit();
         }
         if (count($this->commit)) {
             call_user_func_array($this->commit[0], array_slice($this->commit, 1));
         }
     } elseif ($this->transaction && !debug::$status) {
         if (isset($this->sql)) {
             $this->sql->rollback();
         }
         if (count($this->rollback)) {
             call_user_func_array($this->rollback[0], array_slice($this->rollback, 1));
         }
     }
     if ($not_redirect) {
         $this->controller()->redirector = false;
     }
     if (\saloos::is_json_accept() || $force_json) {
         header('Content-Type: application/json');
         if (isset($this->controller()->redirector) && $this->controller()->redirector) {
             $_SESSION['debug'][md5(strtok($this->redirector()->redirect(true), '?'))] = debug::compile();
             debug::msg("redirect", $this->redirector()->redirect(true));
         }
         echo debug::compile(true);
     } elseif (!\lib\router::get_storage('api') && strtolower($_SERVER['REQUEST_METHOD']) == "post") {
         $this->redirector();
     }
     if (isset($this->controller()->redirector) && $this->controller()->redirector && !\saloos::is_json_accept()) {
         $_SESSION['debug'][md5(strtok($this->redirector()->redirect(true), '?'))] = debug::compile();
         $this->redirector()->redirect();
     }
     if ($force_stop) {
         exit;
     }
 }
開發者ID:evazzadeh,項目名稱:Saloos,代碼行數:44,代碼來源:model.php

示例3: get_congressi

 public function get_congressi($type) {
     try {
         $type = filter_var($type, FILTER_VALIDATE_INT, array('options' => array('min_range' => self::TYPE_VIRTUALFORUM, 'max_range' => self::TYPE_SPECIALECONGRESSI)));
         if (empty($type))
             throw new BadMethodCallException('Virtual Forum o Speciale Congressi?', E_USER_ERROR);
         $query = 'SELECT 
                 id,
             	congresso,
             	alias
             FROM psn_gg_congressi   
             WHERE pubblicato = 1
             AND tipologia=' . $type . '
             ORDER BY ordinamento DESC';
         $this->_db->setQuery($query);
         debug::msg($query);
         return $this->_db->loadAssocList();
     } catch (Exception $e) {
         debug::exception($e);
         return array();
     }
 }
開發者ID:GGallery,項目名稱:MDWEBTV-new,代碼行數:21,代碼來源:_congressi.php

示例4: get_congresso

 public function get_congresso($id) {
     try {
         debug::vardump($id, 'id'); 
         $id = filter_var($id, FILTER_VALIDATE_INT, array('options' => array('min_range' => 1)));
         if (empty($id))
             throw new BadMethodCallException('Identificativo congresso non specificato o non valido', E_USER_ERROR);
         $query = 'SELECT 
                 c.congresso,
                 c.banner,
                 c.abstract AS abstract_congresso,
                 c.alias AS alias_congresso,
                 i.*
             FROM #__gg_congressi AS c
             LEFT JOIN #__gg_contenuti AS i ON i.id_congresso = c.id
             WHERE c.pubblicato = 1 AND c.id = ' . $id;
         $this->_db->setQuery($query);
         debug::msg($query);
         return $this->_db->loadAssocList();            
     } catch (Exception $e) {
         debug::exception($e);
     }
 } 
開發者ID:GGallery,項目名稱:MDWEBTV-new,代碼行數:22,代碼來源:_congresso.php

示例5: setTrack

    /**
     * Traccio la visualizzazioen 
     */
    public function setTrack($user_id, $content_id, $tpl) {
    	try {

    		$query = "INSERT INTO
                #__gg_log (id_utente, id_contenuto, data_accesso, supporto) 
    		values($user_id, $content_id, now(), '$tpl')
    		";

    		debug::msg($query);

    		$this->_db->setQuery($query);
    		if (false === ($results = $this->_db->query()))
    			throw new RuntimeException($this->_db->getErrorMsg(), E_USER_ERROR);
    		return $results;
    	} catch (Exception $e) {
    		jimport('joomla.error.log');
    		$log = &JLog::getInstance('com_gglms.log.php');
    		$log->addEntry(array('comment' => $e->getMessage(), 'status' => $e->getCopde));
    		if ($this->_dbg)
    			$this->_japp->enqueueMessage($e->getMessage(), 'error');
    	}
    }
開發者ID:GGallery,項目名稱:MDWEBTV-new,代碼行數:25,代碼來源:unita.php


注:本文中的debug::msg方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。