本文整理匯總了PHP中DaoFactory::BarcodePatternMst方法的典型用法代碼示例。如果您正苦於以下問題:PHP DaoFactory::BarcodePatternMst方法的具體用法?PHP DaoFactory::BarcodePatternMst怎麽用?PHP DaoFactory::BarcodePatternMst使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DaoFactory
的用法示例。
在下文中一共展示了DaoFactory::BarcodePatternMst方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: perform
/**
* バーコードパターンマスタの保存が成功したかJSON形式で返す
* @access public
* @see Admin_ActionClass::perform()
*/
function perform()
{
// get request params
$arr_data = $this->af->get('arr_data');
// get session params
$company_id = $this->session->get('company_id');
// dao
$BarcodePatternMstDao = DaoFactory::BarcodePatternMst();
file_put_contents('/tmp/aszai_arr_datasss', var_export($arr_data, true));
try {
// mod params
// start transaction
$BarcodePatternMstDao->BeginTransaction();
foreach ($arr_data as $key => $value) {
// set dao params
$params = array('regex' => $value, 'UID' => $user_id, 'PGM' => get_class());
// update
$BarcodePatternMstDao->Update($params, ' company_id = ? and data_type = ? ', array($company_id, $key));
}
// commit transaction
$BarcodePatternMstDao->CommitTransaction();
} catch (Exception $e) {
// rollback
$BarcodePatternMstDao->AbortTransaction();
$this->logger->log(LOG_DEBUG, $e->getTraceAsString());
return array(500, $e->getMessage());
}
exit;
}
示例2: perform
/**
* バーコードパターン編集のビュー名を返す
* @access public
* @return string ビュー名
* @see Admin_ActionClass::perform()
*/
function perform()
{
$company_id = $this->session->get('company_id');
$params = array('company_id' => $company_id);
$data_type = DaoFactory::BarcodePatternMst()->Select(' company_id = ? ', $params)->fetchAll();
$this->af->setApp('data_type', $data_type);
return 'master_barcodepattern_detail_edit';
}