本文整理汇总了PHP中Configuration::getTables方法的典型用法代码示例。如果您正苦于以下问题:PHP Configuration::getTables方法的具体用法?PHP Configuration::getTables怎么用?PHP Configuration::getTables使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Configuration
的用法示例。
在下文中一共展示了Configuration::getTables方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: updateStatus
function updateStatus($errdoc_status)
{
global $application;
$tables = Configuration::getTables();
$columns = $tables['store_settings']['columns'];
$query = new DB_Update('store_settings');
$query->addUpdateValue($columns['value'], (int) $errdoc_status);
$query->WhereValue($columns['name'], DB_EQ, 'enable_error_document');
$application->db->getDB_Result($query);
}
示例2: clearAttributesForCardType
function clearAttributesForCardType($type)
{
global $application;
$tables = Configuration::getTables();
$attributes = $tables['credit_card_attributes_to_types']['columns'];
$query = new DB_Delete('credit_card_attributes_to_types');
$query->WhereValue($attributes['type'], DB_EQ, $type);
$application->db->getDB_Result($query);
}
示例3: asc_delete_option
/**
* Removes option by name. Prevents removal of protected Avactis options.
*
* @package Avactis
* @subpackage Option
* @since 4.7.5
*
*
* @param string $option Name of option to remove.
*/
function asc_delete_option($option)
{
global $application;
$option = trim($option);
if (empty($option)) {
return false;
}
$result = asc_get_option($option);
if ($result) {
$tables = Configuration::getTables();
$tr = $tables['options']['columns'];
$db_delete = new DB_Delete('options');
$db_delete->WhereValue($tr['option_name'], DB_EQ, $option);
$application->db->PrepareSQL($db_delete);
$application->db->DB_Exec();
/**
* Fires after a specific option has been deleted.
*
* The dynamic portion of the hook name, `$option`, refers to the option name.
*
* @param string $option Name of the deleted option.
*/
do_action("asc_delete_option_{$option}", $option);
return true;
} else {
return '';
}
}
示例4: getActiveSkin
public static function getActiveSkin()
{
global $application;
$skins = array();
$tables = Configuration::getTables();
$columns = $tables['store_settings']['columns'];
$query = new DB_Select('store_settings');
$query->addSelectField($columns["variable_value"], "variable_value");
$query->WhereValue($columns['name'], DB_EQ, STOREFRONT_ACTIVE_SKIN);
$skins = $application->db->getDB_Result($query);
return $skins[0]['variable_value'];
}