MidgardQueryBuilder method count
This method has been implemented for Query Builder after Midgard 1.7.0 release.
int $qb->count([array arguments])
count gets the number of objects returned by execute Midgard Query Builder method.
Midgard 1.8: The optional arguments array can be used to specify the values of placeholder constraints specified with the add_placeholder_constraint method.
Usage:
<?php
$qb = new MidgardQueryBuilder("midgard_article");
$qb->add_constraint("name", "=", "index");
if($array = $qb->execute())
{
$fnd = $qb->count();
print "<b>$fnd</b> objects found ";
}
?>
