本文整理汇总了PHP中Helper_Config::getFTTProcessBanio方法的典型用法代码示例。如果您正苦于以下问题:PHP Helper_Config::getFTTProcessBanio方法的具体用法?PHP Helper_Config::getFTTProcessBanio怎么用?PHP Helper_Config::getFTTProcessBanio使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Helper_Config
的用法示例。
在下文中一共展示了Helper_Config::getFTTProcessBanio方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loadBanios
public static function loadBanios($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 $mBanio Banios_Model */
$mBanio = $MY->mBanio;
$MY->db->trans_begin();
try {
$eDatetimeGenerate = $mDateTime_Generate->load(Helper_Config::getFTTProcessBanio(), 'process_name');
if (!$eDatetimeGenerate->isEmpty()) {
$dateBegin = $eDatetimeGenerate->update_datetime;
}
$eDatetimeGenerate->process_name = Helper_Config::getFTTProcessBanio();
$eDatetimeGenerate->update_datetime = $dateEnd;
$mDateTime_Generate->save($eDatetimeGenerate);
$result = $mT_Analytics->loadBanios($dateEnd, $dateBegin);
$eBanios = array();
if (!empty($result)) {
foreach ($result as $row) {
$eBanio = new eBanio(FALSE);
$eBanio->parseRow($row, '', true);
$eBanios[] = $eBanio;
}
}
if (!empty($eBanios)) {
foreach ($eBanios as $eBanio) {
$mBanio->save($eBanio);
}
}
$oBus->isSuccess(TRUE);
$oBus->message('Guardado exitosamente: Baños');
$MY->db->trans_commit();
} catch (Exception $ex) {
$oBus->isSuccess(FALSE);
$oBus->message($ex->getMessage());
$MY->db->trans_rollback();
}
return $oBus;
}
示例2: _banio
public function _banio()
{
$dateBegin = NULL;
$dateEnd = date('Y-m-d') . ' 00:00:00';
$arrDataProcess = array();
/*
* Inicio del proceso de Grupo de Camaras (BAÑOS)
*/
$DateTime_Begin = date('Y-m-d H:i:s');
$cont_process = 0;
while ($cont_process < 2) {
$oRes = Business_Process_Generate::loadBanios($dateEnd, $dateBegin);
if ($oRes->isSuccess()) {
break;
}
$cont_process++;
}
if (!$oRes->isSuccess()) {
Helper_Process_Log::write($oRes->message());
}
$arrDataProcess[Helper_Config::getFTTProcessBanio()] = array('isSuccess' => $oRes->isSuccess(), 'message' => $oRes->message(), 'timestamp' => Helper_Fecha::getDiff_DateTime($DateTime_Begin));
/*-----------------------------------------------------------------*/
Helper_Log::write($arrDataProcess);
//print_r($arrDataProcess);
}