Auth_OpenID_SQLStore::_fixSQL PHP Метод

_fixSQL() публичный Метод

public _fixSQL ( )
    function _fixSQL()
    {
        $replacements = array(array('value' => $this->nonces_table_name, 'keys' => array('nonce_table', 'add_nonce', 'clean_nonce')), array('value' => $this->associations_table_name, 'keys' => array('assoc_table', 'set_assoc', 'get_assoc', 'get_assocs', 'remove_assoc', 'clean_assoc')));
        foreach ($replacements as $item) {
            $value = $item['value'];
            $keys = $item['keys'];
            foreach ($keys as $k) {
                if (is_array($this->sql[$k])) {
                    foreach ($this->sql[$k] as $part_key => $part_value) {
                        $this->sql[$k][$part_key] = sprintf($part_value, $value);
                    }
                } else {
                    $this->sql[$k] = sprintf($this->sql[$k], $value);
                }
            }
        }
    }