Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
d'oh, buttons missing
Browse files Browse the repository at this point in the history
  • Loading branch information
sn0opy committed Dec 12, 2012
1 parent e0ce78a commit ab86458
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs_en.html
Expand Up @@ -781,17 +781,19 @@ <h2>Axon</h2>
<div id="axon_load">
<h3>Axon->load($cond); <span>object</span></h3>
<p>load() will fill the object to manipulate the row.</p>
<button class="btn btn-mini btn-info more" data-toggle="collapse" data-target="#axon_load .collapse">view details</button>
<div class="collapse in">
{% highlight php startinline %}
$ax = new Axon('users');
$ax->load(array('name = :name', array(':name' => 'John')));
// Axon will automatically escape quotes, type cast etc.
{% endhighlight %}
</div>
</div>
</div>
<div id="axon_save">
<h3>Axon->save(<span>mixed</span> cond); <span>void</span></h3>
<p>Saves current object values to the database. Axon decides whether to created or update the entry. Parameter is optional.</p>
<button class="btn btn-mini btn-info more" data-toggle="collapse" data-target="#axon_save .collapse">view details</button>
<div class="collapse in">
{% highlight php startinline %}
$ax = new Axon('users');
Expand All @@ -804,6 +806,7 @@ <h3>Axon->save(<span>mixed</span> cond); <span>void</span></h3>
<div id="axon_dry">
<h3>Axon->dry(<span>mixed</span> cond); <span>bool</span></h3>
<p>Checks whether the Axon object is hydrated or not. Hydrated = load() / find() was successfull. Parameter is optional.</p>
<button class="btn btn-mini btn-info more" data-toggle="collapse" data-target="#axon_dry .collapse">view details</button>
<div class="collapse in">
{% highlight php startinline %}
$ax = new Axon('users');
Expand All @@ -819,6 +822,7 @@ <h3>Axon->dry(<span>mixed</span> cond); <span>bool</span></h3>
<div id="axon_erase">
<h3>Axon->erase(<span>mixed</span> cond);</h3>
<p>Deletes the current hydrated object from the database. Parameter is optional</p>
<button class="btn btn-mini btn-info more" data-toggle="collapse" data-target="#axon_erase .collapse">view details</button>
<div class="collapse in">
{% highlight php startinline %}
$ax = new Axon('users');
Expand Down Expand Up @@ -858,6 +862,7 @@ <h3>Axon->skip(); <span>mixed</span></h3>
<div id="axon_next">
<h3>Axon->next(); <span>array</span></h3>
<p>Returns the next record.</p>
<button class="btn btn-mini btn-info more" data-toggle="collapse" data-target="#axon_next .collapse">view details</button>
<div class="collapse in">
{% highlight php startinline %}
// Assume you have more than one person in your table named "John"
Expand Down

0 comments on commit ab86458

Please sign in to comment.