本文整理匯總了PHP中Helper_Config::getFTTProcessEscaleraAscensor方法的典型用法代碼示例。如果您正苦於以下問題:PHP Helper_Config::getFTTProcessEscaleraAscensor方法的具體用法?PHP Helper_Config::getFTTProcessEscaleraAscensor怎麽用?PHP Helper_Config::getFTTProcessEscaleraAscensor使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Helper_Config
的用法示例。
在下文中一共展示了Helper_Config::getFTTProcessEscaleraAscensor方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: loadEscalera_Ascensor
public static function loadEscalera_Ascensor($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 $mEscaleraAscensor Escalera_Ascensor_Model */
$mEscaleraAscensor = $MY->mEscaleraAscensor;
$MY->db->trans_begin();
try {
$eDatetimeGenerate = $mDateTime_Generate->load(Helper_Config::getFTTProcessEscaleraAscensor(), 'process_name');
if (!$eDatetimeGenerate->isEmpty()) {
$dateBegin = $eDatetimeGenerate->update_datetime;
}
$eDatetimeGenerate->process_name = Helper_Config::getFTTProcessEscaleraAscensor();
$eDatetimeGenerate->update_datetime = $dateEnd;
$mDateTime_Generate->save($eDatetimeGenerate);
$result = $mT_Analytics->loadEscaleraAscensor($dateEnd, $dateBegin);
$eEscaleraAscensors = array();
if (!empty($result)) {
foreach ($result as $row) {
$eEscaleraAscensor = new eEscaleraAscensor(FALSE);
$eEscaleraAscensor->parseRow($row, '', true);
$eEscaleraAscensors[] = $eEscaleraAscensor;
}
}
if (!empty($eEscaleraAscensors)) {
foreach ($eEscaleraAscensors as $eEscaleraAscensor) {
$mEscaleraAscensor->save($eEscaleraAscensor);
}
}
$oBus->isSuccess(TRUE);
$oBus->message('Guardado exitosamente: Escaleras y Ascensores');
$MY->db->trans_commit();
} catch (Exception $ex) {
$oBus->isSuccess(FALSE);
$oBus->message($ex->getMessage());
$MY->db->trans_rollback();
}
return $oBus;
}
示例2: _escalera_ascensor
public function _escalera_ascensor()
{
$dateBegin = NULL;
$dateEnd = date('Y-m-d') . ' 00:00:00';
$arrDataProcess = array();
/*
* Inicio del proceso de Grupo de Camaras (ESCALERAS Y ASCENSORES)
*/
$DateTime_Begin = date('Y-m-d H:i:s');
$cont_process = 0;
while ($cont_process < 2) {
$oRes = Business_Process_Generate::loadEscalera_Ascensor($dateEnd, $dateBegin);
if ($oRes->isSuccess()) {
break;
}
$cont_process++;
}
if (!$oRes->isSuccess()) {
Helper_Process_Log::write($oRes->message());
}
$arrDataProcess[Helper_Config::getFTTProcessEscaleraAscensor()] = array('isSuccess' => $oRes->isSuccess(), 'message' => $oRes->message(), 'timestamp' => Helper_Fecha::getDiff_DateTime($DateTime_Begin));
/*-----------------------------------------------------------------*/
Helper_Log::write($arrDataProcess);
//print_r($arrDataProcess);
}