34 $this->initial = $db->getQueryCount();
58 header(
"X-ElggQueryDelta-$key: $delta",
true);
73 $msg = json_encode(
"ElggQueryDelta-$key: $delta");
74 return "<script>console.log($msg)</script>";
setDeltaHeader($key= 'Default')
Create header X-ElggQueryDelta-* with the delta.
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.
clearfix elgg elgg elgg elgg page header