当前位置: 首页>>代码示例>>PHP>>正文


PHP Configuration::getTables方法代码示例

本文整理汇总了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);
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:10,代码来源:error_document_api.php

示例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);
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:9,代码来源:configuration_api.php

示例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 '';
    }
}
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:38,代码来源:option.php

示例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'];
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:12,代码来源:look_feel_api.php


注:本文中的Configuration::getTables方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。