本文整理汇总了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";
}