public function getTotalMessages()
    {
        $sql = 'SELECT COUNT(message_id) FROM ' . $this->messageTable . ' WHERE 1';
        $stmt = $this->getDb()->prepare($sql);
        $stmt->execute();
        return $stmt->fetchColumn();
    }
public function getTotalMessages()
    {
        $sql = 'SELECT COUNT(message_id) FROM ' . $this->messageTable . ' WHERE 1';
        $stmt = $this->getDb()->prepare($sql);
        $stmt->execute();
        return $stmt->fetchColumn();
    }
public function getTotalMessages ( ) { $ sql = 'SELECT COUNT(message_id) FROM ' . $ this -> messageTable . ' WHERE 1' ; $ stmt = $ this -> getDb ( ) -> prepare ( $ sql ) ; $ stmt -> execute ( ) ; return $ stmt -> fetchColumn ( ) ; }
Get total messages in all queues

@return int
Get total messages in all queues