本文整理匯總了PHP中CampaignDbTables::getRealCode方法的典型用法代碼示例。如果您正苦於以下問題:PHP CampaignDbTables::getRealCode方法的具體用法?PHP CampaignDbTables::getRealCode怎麽用?PHP CampaignDbTables::getRealCode使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CampaignDbTables
的用法示例。
在下文中一共展示了CampaignDbTables::getRealCode方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
public function __construct($code)
{
$code = CampaignDbTables::getRealCode($code);
parent::__construct("cpn_{$code}_media");
// 主キー列
$field =& $this->addField(new DataField('teikei_media_id'));
$field->setPrimaryKey();
$field->setMainteField();
// データ列
$this->addField(new DataField('anken_id'));
$this->addField(new DataField('media_id'));
$this->addField(new DataField('media_url'));
$this->addField(new DataField('media_url2'));
$this->addField(new DataField('redirect_url'));
$this->addField(new DataField('price'));
$this->addField(new DataField('oroshi_price'));
$this->addField(new DataField('extra_price'));
$this->addField(new DataField('extra_oroshi'));
$this->addField(new DataField('teikei_from'));
$this->addField(new DataField('teikei_to'));
$this->addField(new DataField('download_flag'));
$this->addField(new DataField('free1_cd'));
// メンテナンス列
$field =& $this->addField(new DataField('upd_time'));
$field->setMainteField();
$field =& $this->addField(new DataField('upd_user_id'));
$field->setMainteField();
// $field =& $this->addField(new DataField('del_flg'));
// $field->setMainteField();
}
示例2: getFileName
/**
* ファイルパスを取得します
*/
public static function getFileName($code, $media_id)
{
$realCode = CampaignDbTables::getRealCode($code);
return ABS_CAMPAIGN_APPROOT . "model/{$realCode}/BannerId_{$media_id}.txt";
}