本文整理汇总了PHP中Banner::getTables方法的典型用法代码示例。如果您正苦于以下问题:PHP Banner::getTables方法的具体用法?PHP Banner::getTables怎么用?PHP Banner::getTables使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Banner
的用法示例。
在下文中一共展示了Banner::getTables方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: install
function install()
{
global $application;
loadCoreFile('csv_parser.php');
$csv_parser = new CSV_Parser();
$tables = Banner::getTables();
$query = new DB_Table_Create($tables);
$table_banners_settings = 'banners_settings';
$columns = $tables[$table_banners_settings]['columns'];
list($flt, $Default_Settings) = $csv_parser->parse_file(dirname(__FILE__) . "/includes/default_settings.csv");
foreach ($Default_Settings as $key => $setting) {
$query = new DB_Insert($table_banners_settings);
$query->addInsertValue($setting["key"], $columns['setting_key']);
$query->addInsertValue($setting["value"], $columns['setting_value']);
$application->db->getDB_Result($query);
}
}
示例2: initQuery
function initQuery($params)
{
$tables = Banner::getTables();
$tr = $tables['banners_images']['columns'];
$this->addInsertValue($params[0]['bannerid'], $tr['bannerid']);
$this->addInsertValue($params[0]['image_path'], $tr['image_path']);
$this->addInsertValue($params[0]['image_type'], $tr['image_type']);
$this->addInsertValue($params[0]['image_x'], $tr['image_x']);
$this->addInsertValue($params[0]['image_y'], $tr['image_y']);
$this->addInsertValue($params[0]['image_size'], $tr['image_size']);
$this->addInsertValue($params[0]['filename'], $tr['filename']);
$this->addInsertValue($params[0]['date'], $tr['date']);
$this->addInsertValue($params[0]['alt'], $tr['alt']);
$this->addInsertValue($params[0]['url'], $tr['url']);
$this->addInsertValue($params[0]['type'], $tr['type']);
}