Skip to content

Commit

Permalink
Fixed code comment in Inflector::classify() example.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelmer Schreuder committed Jul 29, 2011
1 parent 8b50b84 commit dd69b2d
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions classes/inflector.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h1>Fuel Documentation</h1>
<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 id="method_ascii">ascii($str)</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>
Expand Down Expand Up @@ -67,7 +67,7 @@ <h4 id="method_ascii">ascii($str)</h4>
</tbody>
</table>
</article>

<article>
<h4 id="method_camelize">camelize($underscored_word)</h4>
<p>The <strong>camelize</strong> method allows you to convert a string with words separated by underscores into a CamelCased string.</p>
Expand Down Expand Up @@ -107,7 +107,7 @@ <h4 id="method_camelize">camelize($underscored_word)</h4>
</tbody>
</table>
</article>

<article>
<h4 id="method_classify">classify($table_name)</h4>
<p>The <strong>classify</strong> method allows you to convert a table name to a class name.</p>
Expand Down Expand Up @@ -141,13 +141,13 @@ <h4 id="method_classify">classify($table_name)</h4>
<tr>
<th>Example</th>
<td>
<pre class="php"><code>echo Inflector::classify('fuel_users'); // returns FuelUser</code></pre>
<pre class="php"><code>echo Inflector::classify('fuel_users'); // returns Fuel_User</code></pre>
</td>
</tr>
</tbody>
</table>
</article>

<article>
<h4 id="method_demodulize">demodulize($class_name_in_module)</h4>
<p>The <strong>demodulize</strong> method allows you to take the class name out of a modulized string.</p>
Expand Down Expand Up @@ -187,7 +187,7 @@ <h4 id="method_demodulize">demodulize($class_name_in_module)</h4>
</tbody>
</table>
</article>

<article>
<h4 id="method_denamespace">denamespace($class_name)</h4>
<p>The <strong>denamespace</strong> method allows you to take the namespace off the given class name.</p>
Expand Down Expand Up @@ -227,7 +227,7 @@ <h4 id="method_denamespace">denamespace($class_name)</h4>
</tbody>
</table>
</article>

<article>
<h4 id="method_get_namespace">get_namespace($class_name)</h4>
<p>The <strong>get_namespace</strong> method returns the namespace of the given class name..</p>
Expand Down Expand Up @@ -267,7 +267,7 @@ <h4 id="method_get_namespace">get_namespace($class_name)</h4>
</tbody>
</table>
</article>

<article>
<h4 id="method_foreign_key">foreign_key($class_name, $use_underscore = true)</h4>
<p>The <strong>foreign_key</strong> method allows you to get the foreign key for a given class.</p>
Expand Down Expand Up @@ -313,7 +313,7 @@ <h4 id="method_foreign_key">foreign_key($class_name, $use_underscore = true)</h4
</tbody>
</table>
</article>

<article>
<h4 id="method_friendly_title">friendly_title($str, $sep = '-', $lowercase = 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>
Expand Down Expand Up @@ -364,7 +364,7 @@ <h4 id="method_friendly_title">friendly_title($str, $sep = '-', $lowercase = fal
</tbody>
</table>
</article>

<article>
<h4 id="method_humanize">humanize($lower_case_and_underscored_word)</h4>
<p>The <strong>humanize</strong> method allows you to turn an underscore separated word and turns it into a human looking string.</p>
Expand Down Expand Up @@ -404,7 +404,7 @@ <h4 id="method_humanize">humanize($lower_case_and_underscored_word)</h4>
</tbody>
</table>
</article>

<article>
<h4 id="method_is_countable">is_countable($word)</h4>
<p>The <strong>is_countable</strong> method allows you check if the given word has a plural version.</p>
Expand Down Expand Up @@ -445,7 +445,7 @@ <h4 id="method_is_countable">is_countable($word)</h4>
</tbody>
</table>
</article>

<article>
<h4 id="method_pluralize">pluralize($word)</h4>
<p>The <strong>pluralize</strong> method allows you get the plural version of the given word.</p>
Expand Down Expand Up @@ -485,7 +485,7 @@ <h4 id="method_pluralize">pluralize($word)</h4>
</tbody>
</table>
</article>

<article>
<h4 id="method_singularize">singularize($word)</h4>
<p>The <strong>singularize</strong> method allows you get the singular version of the given word.</p>
Expand Down Expand Up @@ -525,7 +525,7 @@ <h4 id="method_singularize">singularize($word)</h4>
</tbody>
</table>
</article>

<article>
<h4 id="method_tableize">tableize($class_name)</h4>
<p>The <strong>tableize</strong> method allows you to convert a class name to a table name.</p>
Expand Down Expand Up @@ -565,7 +565,7 @@ <h4 id="method_tableize">tableize($class_name)</h4>
</tbody>
</table>
</article>

<article>
<h4 id="method_underscore">underscore($camel_cased_word)</h4>
<p>The <strong>underscore</strong> method allows you to convert a CamelCased string into an underscore separated string.</p>
Expand Down Expand Up @@ -605,7 +605,7 @@ <h4 id="method_underscore">underscore($camel_cased_word)</h4>
</tbody>
</table>
</article>

</section>

<section id="footer">
Expand Down

0 comments on commit dd69b2d

Please sign in to comment.