本文整理匯總了PHP中DaoFactory::TanmatsuLicense方法的典型用法代碼示例。如果您正苦於以下問題:PHP DaoFactory::TanmatsuLicense方法的具體用法?PHP DaoFactory::TanmatsuLicense怎麽用?PHP DaoFactory::TanmatsuLicense使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DaoFactory
的用法示例。
在下文中一共展示了DaoFactory::TanmatsuLicense方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: perform
/**
* 端末マスタのデータをJSON形式で返す
* @access public
* @return array 端末マスタ
* @see Admin_ActionClass::perform()
*/
public function perform()
{
// get request params ( search )
$s_terminal_id = $this->af->get('terminal_id');
// get session params
$company_id = $this->session->get('company_id');
try {
// DAO パラメータ定義
$params = array('company_id' => $company_id, 'terminal_id' => $s_terminal_id);
// 詳細を取得
$detail = DaoFactory::TerminalMst()->Retrieve(' company_id = ? AND terminal_id = ? ', $params);
$licenses = DaoFactory::TanmatsuLicense()->GetLicenseInfo($params)->fetchAll();
unset($detail['PASSWORD']);
unset($detail['PASSWORD_KIGEN']);
$detail['LICENSE_ID'] = array();
foreach ($licenses as $record) {
$detail['LICENSE_ID'][] = array('LICENSE_ID' => $record['LICENSE_ID'], 'START_YMD' => $record['START_YMD'], 'END_YMD' => $record['END_YMD']);
}
// output にセット
$output['totalData'] = array();
$output['listData'] = $detail;
$output['pagerData'] = array();
} catch (Exception $e) {
// 致命的なエラーが発生
return array('500', $e->getMessage());
}
return array('json', $output);
}