Skip to content

Commit

Permalink
Added missing "allow_non_ascii" param in inflector class
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide Bellini committed Nov 5, 2012
1 parent 90f7fe2 commit f9f3c1e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions classes/inflector.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h2>Inflector Class</h2>
<p>The Inflector class allows you to transforms words from singular to plural, class names to table names, modularized class names to ones without, and class names to foreign keys.</p>

<article>
<h4 class="method" id="method_ascii">ascii($str)</h4>
<h4 class="method" id="method_ascii">ascii($str, $allow_non_ascii = false)</h4>
<p>The <strong>ascii</strong> method allows you to translate a string to a 7-bit ASCII string. This method only works with UTF-8.</p>
<table class="method">
<tbody>
Expand All @@ -72,6 +72,11 @@ <h4 class="method" id="method_ascii">ascii($str)</h4>
<td><i>Required</i></td>
<td>The string to translate.</td>
</tr>
<tr>
<th><kbd>$allow_non_ascii</kbd></th>
<td><pre class="php"><code>false</code></pre></td>
<td>Whether to allow non ASCII chars.</td>
</tr>
</table>
</td>
</tr>
Expand Down Expand Up @@ -388,7 +393,7 @@ <h4 class="method" id="method_foreign_key">foreign_key($class_name, $use_undersc
</article>

<article>
<h4 class="method" id="method_friendly_title">friendly_title($str, $sep = '-', $lowercase = false)</h4>
<h4 class="method" id="method_friendly_title">friendly_title($str, $sep = '-', $lowercase = false, $allow_non_ascii = false)</h4>
<p>The <strong>friendly_title</strong> method allows you to convert your text to a URL-friendly title so that it can be used in the URL. It only works with UTF-8 input and outputs 7 bit ASCII characters.</p>
<table class="method">
<tbody>
Expand Down Expand Up @@ -420,6 +425,11 @@ <h4 class="method" id="method_friendly_title">friendly_title($str, $sep = '-', $
<td><pre class="php"><code>false</code></pre></td>
<td>Whether to use lowercase or not.</td>
</tr>
<tr>
<th><kbd>$allow_non_ascii</kbd></th>
<td><pre class="php"><code>false</code></pre></td>
<td>Whether to allow non ASCII chars.</td>
</tr>
</table>
</td>
</tr>
Expand Down

0 comments on commit f9f3c1e

Please sign in to comment.