33 $this->initial =
$db->getQueryCount();
57 header(
"X-ElggQueryDelta-$key: $delta",
true);
72 $msg = json_encode(
"ElggQueryDelta-$key: $delta");
73 return "<script>console.log($msg)</script>";
getDelta()
Get the number of queries performed since the object was constructed.
getDeltaScript($key='Default')
Get SCRIPT element which sends the delta to console.log.
__construct(Elgg_Database $db)
Constructor.
setDeltaHeader($key='Default')
Create header X-ElggQueryDelta-* with the delta.
clearfix elgg elgg elgg elgg page header