Elgg\Database::getQueryCount PHP Method

getQueryCount() public method

Get the number of queries made to the database
public getQueryCount ( ) : integer
return integer
    public function getQueryCount()
    {
        return $this->query_count;
    }

Usage Example

コード例 #1
0
ファイル: QueryCounter.php プロジェクト: ibou77/elgg
 /**
  * Get the number of queries performed since the object was constructed
  *
  * @return int # of queries
  */
 public function getDelta()
 {
     return $this->db->getQueryCount() - $this->initial;
 }