Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > d51872cc0e1fdee944d71993f94ac764 > files > 461

ruby-activerecord-2.3.4-1mdv2010.0.noarch.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Module: ActiveRecord::ConnectionAdapters::Quoting</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Module</strong></td>
          <td class="class-name-in-header">ActiveRecord::ConnectionAdapters::Quoting</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../../../files/lib/active_record/connection_adapters/abstract/quoting_rb.html">
                lib/active_record/connection_adapters/abstract/quoting.rb
                </a>
        <br />
            </td>
        </tr>

        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">



   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000142">quote</a>&nbsp;&nbsp;
      <a href="#M000144">quote_column_name</a>&nbsp;&nbsp;
      <a href="#M000143">quote_string</a>&nbsp;&nbsp;
      <a href="#M000145">quote_table_name</a>&nbsp;&nbsp;
      <a href="#M000148">quoted_date</a>&nbsp;&nbsp;
      <a href="#M000147">quoted_false</a>&nbsp;&nbsp;
      <a href="#M000149">quoted_string_prefix</a>&nbsp;&nbsp;
      <a href="#M000146">quoted_true</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->

    <div id="section">





      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M000142" class="method-detail">
        <a name="M000142"></a>

        <div class="method-heading">
          <a href="Quoting.src/M000142.html" target="Code" class="method-signature"
            onclick="popupCode('Quoting.src/M000142.html');return false;">
          <span class="method-name">quote</span><span class="method-args">(value, column = nil)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Quotes the column value to help prevent <a
href="http://en.wikipedia.org/wiki/SQL_injection">SQL injection
attacks</a>.
</p>
        </div>
      </div>

      <div id="method-M000144" class="method-detail">
        <a name="M000144"></a>

        <div class="method-heading">
          <a href="Quoting.src/M000144.html" target="Code" class="method-signature"
            onclick="popupCode('Quoting.src/M000144.html');return false;">
          <span class="method-name">quote_column_name</span><span class="method-args">(column_name)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Quotes the column name. Defaults to no quoting.
</p>
        </div>
      </div>

      <div id="method-M000143" class="method-detail">
        <a name="M000143"></a>

        <div class="method-heading">
          <a href="Quoting.src/M000143.html" target="Code" class="method-signature"
            onclick="popupCode('Quoting.src/M000143.html');return false;">
          <span class="method-name">quote_string</span><span class="method-args">(s)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Quotes a string, escaping any &#8217; (single <a
href="Quoting.html#M000142">quote</a>) and \ (backslash) characters.
</p>
        </div>
      </div>

      <div id="method-M000145" class="method-detail">
        <a name="M000145"></a>

        <div class="method-heading">
          <a href="Quoting.src/M000145.html" target="Code" class="method-signature"
            onclick="popupCode('Quoting.src/M000145.html');return false;">
          <span class="method-name">quote_table_name</span><span class="method-args">(table_name)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Quotes the table name. Defaults to column name quoting.
</p>
        </div>
      </div>

      <div id="method-M000148" class="method-detail">
        <a name="M000148"></a>

        <div class="method-heading">
          <a href="Quoting.src/M000148.html" target="Code" class="method-signature"
            onclick="popupCode('Quoting.src/M000148.html');return false;">
          <span class="method-name">quoted_date</span><span class="method-args">(value)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000147" class="method-detail">
        <a name="M000147"></a>

        <div class="method-heading">
          <a href="Quoting.src/M000147.html" target="Code" class="method-signature"
            onclick="popupCode('Quoting.src/M000147.html');return false;">
          <span class="method-name">quoted_false</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000149" class="method-detail">
        <a name="M000149"></a>

        <div class="method-heading">
          <a href="Quoting.src/M000149.html" target="Code" class="method-signature"
            onclick="popupCode('Quoting.src/M000149.html');return false;">
          <span class="method-name">quoted_string_prefix</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000146" class="method-detail">
        <a name="M000146"></a>

        <div class="method-heading">
          <a href="Quoting.src/M000146.html" target="Code" class="method-signature"
            onclick="popupCode('Quoting.src/M000146.html');return false;">
          <span class="method-name">quoted_true</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>