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


PHP Helper_Config::getFTTProcessCameraGeneral方法代码示例

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


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

示例1: _camera_general

 public function _camera_general()
 {
     $dateBegin = NULL;
     $dateEnd = date('Y-m-d') . ' 00:00:00';
     $arrDataProcess = array();
     /*
      * Inicio del proceso de Camara en General
      */
     $DateTime_CameraGeneral_Begin = date('Y-m-d H:i:s');
     $cont_P_CameraGeneral = 0;
     while ($cont_P_CameraGeneral < 2) {
         $oRes = Business_Process_Generate::loadCameraGeneral($dateEnd, $dateBegin);
         if ($oRes->isSuccess()) {
             break;
         }
         $cont_P_CameraGeneral++;
     }
     if (!$oRes->isSuccess()) {
         Helper_Process_Log::write($oRes->message());
     }
     $arrDataProcess[Helper_Config::getFTTProcessCameraGeneral()] = array('isSuccess' => $oRes->isSuccess(), 'message' => $oRes->message(), 'timestamp' => Helper_Fecha::getDiff_DateTime($DateTime_CameraGeneral_Begin));
     /*-----------------------------------------------------------------*/
     Helper_Log::write($arrDataProcess);
     //print_r($arrDataProcess);
 }
开发者ID:crodriguezn,项目名称:crossfit-milagro,代码行数:25,代码来源:generate.php

示例2: loadCameraGeneral

 public static function loadCameraGeneral($dateEnd, $dateBegin)
 {
     $oBus = new Response_Business();
     $MY =& MY_Controller::get_instance();
     /* @var $mT_Analytics T_Analytics_Model  */
     $mT_Analytics =& $MY->mT_Analytics;
     /* @var $mDateTime_Generate Datetime_Generate_Model */
     $mDateTime_Generate =& $MY->mDateTime_Generate;
     /* @var $mCamera_General Camera_General_Model  */
     $mCamera_General =& $MY->mCamera_General;
     $MY->db->trans_begin();
     try {
         $eDatetimeGenerate = $mDateTime_Generate->load(Helper_Config::getFTTProcessCameraGeneral(), 'process_name');
         if (!$eDatetimeGenerate->isEmpty()) {
             $dateBegin = $eDatetimeGenerate->update_datetime;
         }
         $eDatetimeGenerate->process_name = Helper_Config::getFTTProcessCameraGeneral();
         $eDatetimeGenerate->update_datetime = $dateEnd;
         $mDateTime_Generate->save($eDatetimeGenerate);
         $result = $mT_Analytics->loadCameraGeneral($dateEnd, $dateBegin);
         $eCameraGenerals = array();
         if (!empty($result)) {
             foreach ($result as $row) {
                 $eCameraGeneral = new eCameraGeneral(FALSE);
                 $eCameraGeneral->parseRow($row, '', true);
                 $eCameraGenerals[] = $eCameraGeneral;
             }
         }
         if (!empty($eCameraGenerals)) {
             foreach ($eCameraGenerals as $eCameraGeneral) {
                 $mCamera_General->save($eCameraGeneral);
             }
         }
         $oBus->isSuccess(TRUE);
         $oBus->message('Guardado exitosamente: Camara General');
         $MY->db->trans_commit();
     } catch (Exception $ex) {
         $oBus->isSuccess(FALSE);
         $oBus->message($ex->getMessage());
         $MY->db->trans_rollback();
     }
     return $oBus;
 }
开发者ID:crodriguezn,项目名称:crossfit-milagro,代码行数:43,代码来源:generate_business.php


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