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


PHP SJB_HelperFunctions::debugModeIsTurnedOn方法代码示例

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


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

示例1: debugInfoPrint

 /**
  * print debug info from global $DEBUG
  * @static
  */
 public static function debugInfoPrint()
 {
     if (SJB_HelperFunctions::debugModeIsTurnedOn()) {
         global $DEBUG;
         $DEBUG['OPERATING_SYSTEM'] = PHP_OS;
         echo '<pre>';
         print_r($DEBUG);
         echo '</pre>';
         echo 'REQUEST<br/><pre>';
         print_r($_REQUEST);
         echo '</pre>';
     }
 }
开发者ID:Maxlander,项目名称:shixi,代码行数:17,代码来源:HelperFunctions.php

示例2: getProfileInformation

 public function getProfileInformation()
 {
     if (!$this->takeDataFromServer && ($oCurUser = SJB_UserManager::getCurrentUser())) {
         $curUserSID = $oCurUser->getSID();
         $profileSocialID = self::getProfileSocialID($curUserSID);
         if ($profileSocialID) {
             $aProfExpl = explode($this->getNetwork() . '_', $profileSocialID);
             $linkedinID = SJB_Array::get($aProfExpl, 1);
             $profileSocialInfo = $this->getProfileSocialSavedInfoBySocialID($linkedinID);
             if ($profileSocialInfo) {
                 self::$oProfile = SJB_Array::get($profileSocialInfo, 'profile_info');
                 self::$oSocialPlugin = $this;
                 if (SJB_HelperFunctions::debugModeIsTurnedOn()) {
                     SJB_HelperFunctions::debugInfoPush(self::$oProfile, 'SOCIAL_PLUGIN');
                 }
                 return true;
             }
         }
     }
     if (self::$object) {
         try {
             $this->_getProfileInfoByAccessToken();
             if (self::$oProfile) {
                 if (SJB_HelperFunctions::debugModeIsTurnedOn()) {
                     SJB_HelperFunctions::debugInfoPush(self::$oProfile, 'SOCIAL_PLUGINS');
                 }
                 return true;
             } else {
                 SJB_Session::unsetValue('sn');
             }
         } catch (FacebookApiException $e) {
             SJB_Error::writeToLog($e->getMessage());
         }
     }
     return null;
 }
开发者ID:Maxlander,项目名称:shixi,代码行数:36,代码来源:facebook_social_plugin.php

示例3: grab_image

 function grab_image($filename, $outfile, $frame_number = "00:00:03", $image_format, $width, $height)
 {
     $size = $width . "x" . $height;
     $cmd = "ffmpeg -i \"{$filename}\" -vframes 1 -ss {$frame_number} -an -vcodec {$image_format} -f rawvideo -s {$size} \"{$outfile}\"  2>&1 ";
     exec($cmd, $ret);
     if (SJB_HelperFunctions::debugModeIsTurnedOn()) {
         SJB_HelperFunctions::debugInfoPush(array('media' => print_r($cmd, 1), 'result' => print_r($ret, 1)), 'UPLOAD_VIDEO_FILE_TYPE-GRAB_IMAGE');
     }
     return $ret;
 }
开发者ID:Maxlander,项目名称:shixi,代码行数:10,代码来源:UploadVideoFileType.php

示例4: display

 public function display($template = null, $cache_id = null, $compile_id = null, $parent = null)
 {
     if (SJB_FlashMessages::getInstance()->isErrors()) {
         return;
     }
     $compile_id = $this->module_name;
     if (SJB_HelperFunctions::debugModeIsTurnedOn()) {
         SJB_HelperFunctions::debugInfoPush(array($compile_id => $template), 'TEMPLATE_PROCESSOR');
     }
     parent::display($this->templateSupplier->getTplName($template), $cache_id, $compile_id, $parent);
 }
开发者ID:Maxlander,项目名称:shixi,代码行数:11,代码来源:TemplateProcessor.php

示例5: getProfileInformation

 private function getProfileInformation()
 {
     if (!$this->takeDataFromServer && ($oCurUser = SJB_UserManager::getCurrentUser())) {
         $curUserSID = $oCurUser->getSID();
         $profileSocialID = self::getProfileSocialID($curUserSID);
         if ($profileSocialID) {
             $aProfExpl = explode($this->getNetwork() . '_', $profileSocialID);
             $linkedinID = $aProfExpl[1];
             $profileSocialInfo = $this->getProfileSocialSavedInfoBySocialID($linkedinID);
             if ($profileSocialInfo) {
                 self::$oProfile = $profileSocialInfo['profile_info'];
                 self::$oSocialPlugin = $this;
                 if (SJB_HelperFunctions::debugModeIsTurnedOn()) {
                     SJB_HelperFunctions::debugInfoPush(self::$oProfile, 'SOCIAL_PLUGIN');
                 }
                 return true;
             }
         }
     }
     if (self::$object) {
         try {
             $response = self::$object->getProfileInfo($this->requestedProfileFields);
             if ($response) {
                 self::$oProfile = new SimpleXMLElement($response);
                 self::$oSocialPlugin = $this;
                 if (SJB_HelperFunctions::debugModeIsTurnedOn()) {
                     SJB_HelperFunctions::debugInfoPush(self::$oProfile, 'SOCIAL_PLUGIN');
                 }
                 return true;
             }
         } catch (Exception $ex) {
             // revocation successful, clear session
             unset($_SESSION['oauth'][self::NETWORK_ID]);
             $this->cleanSessionData(self::NETWORK_ID);
             if (SJB_HelperFunctions::debugModeIsTurnedOn()) {
                 $debug = "Error retrieving profile information:\n\nRESPONSE:\n\n<pre>" . print_r($ex->getMessage()) . "</pre>";
                 SJB_HelperFunctions::debugInfoPush($debug, 'SOCIAL_PLUGINS');
             }
         }
     }
     return null;
 }
开发者ID:Maxlander,项目名称:shixi,代码行数:42,代码来源:linkedin_social_plugin.php


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