Skip to content

Commit

Permalink
corrected Mongo_Db like() docs; related fuel/core#1672
Browse files Browse the repository at this point in the history
  • Loading branch information
WanWizard committed Apr 26, 2014
1 parent 3459e63 commit 7190793
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions classes/mongo/methods.html
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ <h4 class="method" id="method_ne">where_ne($field = "", $x)</h4>
</article>

<article>
<h4 class="method" id="method_like">like($field = '', $value = '', $flags = 'i', $enable_start_wildcard = true, $enable_end_wildcard = true)</h4>
<h4 class="method" id="method_like">like($field = '', $value = '', $flags = 'i', $disable_start_wildcard = false, $disable_end_wildcard = false)</h4>
<p>
The <strong>like</strong> method a sets a 'like' statement.
</p>
Expand Down Expand Up @@ -1116,16 +1116,16 @@ <h4 class="method" id="method_like">like($field = '', $value = '', $flags = 'i',
</td>
</tr>
<tr>
<th><kbd>$enable_start_wildcard</kbd></th>
<th><kbd>$disable_start_wildcard</kbd></th>
<td><em>bool</em></td>
<td><pre class="php"><code>true</code></pre></td>
<td>When set to <em>true</em> the beginning of the string must match.</td>
<td><pre class="php"><code>false</code></pre></td>
<td>When set to <em>false</em> the beginning of the string must match.</td>
</tr>
<tr>
<th><kbd>$enable_end_wildcard</kbd></th>
<th><kbd>$disable_end_wildcard</kbd></th>
<td><em>bool</em></td>
<td><pre class="php"><code>true</code></pre></td>
<td>When set to <em>true</em> the ending of the string must match.</td>
<td><pre class="php"><code>false</code></pre></td>
<td>When set to <em>false</em> the ending of the string must match.</td>
</tr>
</table>
</td>
Expand All @@ -1139,7 +1139,9 @@ <h4 class="method" id="method_like">like($field = '', $value = '', $flags = 'i',
<td>
<pre class="php"><code>// Get an instance
$mongodb = \Mongo_Db::instance();
$mongodb->like('name', 'fran', 'im', true);

// look for users with a name starting with 'fran'...
$mongodb->like('name', 'fran', 'im', false, true);
$users = $mongodb->get('users');
</code></pre>
</td>
Expand Down

0 comments on commit 7190793

Please sign in to comment.