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


PHP Configuration::getValue方法代码示例

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


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

示例1: saveForStorage

 private function saveForStorage()
 {
     $tmp = Configuration::getValue('project_' . $this->projectId);
     $tmp['b24connect'] = $this->resource;
     if (isset($tmp['info']['USERINFO'])) {
         $tmp['info']['USERINFO'] = array('access_token' => $this->resource['access_token'], 'refresh_token' => $this->resource['refresh_token'], 'expires_in' => $this->resource['expires_in'], 'domain' => $tmp['info']['USERINFO']['domain'], 'member_id' => $tmp['info']['USERINFO']['member_id']);
     } else {
         $tmp['info']['USERINFO'] = array('access_token' => $this->resource['access_token'], 'refresh_token' => $this->resource['refresh_token'], 'expires_in' => $this->resource['expires_in'], 'domain' => 'null', 'member_id' => 'null');
     }
     Configuration::setValue('project_' . $this->projectId, $tmp);
 }
开发者ID:Okhremchuk,项目名称:Ingenum,代码行数:11,代码来源:class.ShBitrix24.php

示例2: insertTest

 public static function insertTest($projectId)
 {
     $lead = array('TITLE' => 'test');
     $projectId = intval($projectId);
     $project = Configuration::getValue('project_' . $projectId);
     $arResult = self::add($lead);
     if (isset($arResult['result'])) {
         $leadId = intval($arResult['result']);
     } else {
         $leadId = 0;
     }
     @self::sendMailForAdmin($lead, $project, false, array(), $leadId);
     return $arResult;
 }
开发者ID:Okhremchuk,项目名称:Ingenum,代码行数:14,代码来源:class.ShefBitrix24Lead.php

示例3: initQuery

 function initQuery($params)
 {
     $visitor_id = $params['visitor_id'];
     $time_period = $params['time_period'];
     $tables = Reports::getTables();
     $c_seances = $tables['reports_visitor_seances']['columns'];
     $c_seance_info = $tables['reports_visitor_seance_info']['columns'];
     $c_page_info = $tables['reports_page_urls']['columns'];
     $time_shift_hours = Configuration::getValue(SYSCONFIG_STORE_TIME_SHIFT);
     $this->addSelectField($c_seance_info['seance_id'], 'seance_id');
     $this->addSelectField($c_page_info['page_url'], 'page_url');
     $this->addSelectTable('reports_visitor_seances');
     $this->addInnerJoin('reports_page_urls', $c_seance_info['page_url'], DB_EQ, $c_page_info['id']);
     $this->WhereField($c_seances['seance_id'], DB_EQ, $c_seance_info['seance_id']);
     $this->WhereAND();
     $this->Where($c_seance_info['visit_time'], DB_GTE, 'DATE_ADD(DATE_ADD(NOW(), INTERVAL ' . $time_shift_hours . ' HOUR), INTERVAL -' . $time_period . ' MINUTE)');
     $this->WhereAND();
     $this->WhereValue($c_seances['visitor_id'], DB_EQ, $visitor_id);
     $this->SelectOrder($c_seance_info['visit_time'], 'DESC');
     $this->SelectLimit(0, 1);
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:21,代码来源:common.php

示例4: __getOnlineStatus

 function __getOnlineStatus($seance_id)
 {
     $last_time = null;
     foreach ($this->click_path_by_seance_id_list as $key => $info) {
         if ($info['seance_id'] == $seance_id) {
             $last_time = $info['visit_time'];
         }
     }
     if ($last_time == null) {
         return false;
     } else {
         $t = strtotime($last_time) + $this->session_duration * 60 - Configuration::getValue(SYSCONFIG_STORE_TIME_SHIFT) * 3600;
         if ($t >= time()) {
             return true;
         } else {
             return false;
         }
     }
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:19,代码来源:report_top_10_customer_stat_source.php


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