本文整理匯總了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'];
}