public function getGeneralInformation()
    {
        Piwik::checkUserHasSuperUserAccess();
        // calculate total size
        $totalSpaceUsed = 0;
        foreach ($this->metadataProvider->getAllTablesStatus() as $status) {
            $totalSpaceUsed += $status['Data_length'] + $status['Index_length'];
        }

        $siteTableStatus = $this->metadataProvider->getTableStatus('site');
        $userTableStatus = $this->metadataProvider->getTableStatus('user');

        $siteCount = $siteTableStatus['Rows'];
        $userCount = $userTableStatus['Rows'];

        return array($siteCount, $userCount, $totalSpaceUsed);
    }
public function getGeneralInformation()
    {
        Piwik::checkUserHasSuperUserAccess();
        // calculate total size
        $totalSpaceUsed = 0;
        foreach ($this->metadataProvider->getAllTablesStatus() as $status) {
            $totalSpaceUsed += $status['Data_length'] + $status['Index_length'];
        }

        $siteTableStatus = $this->metadataProvider->getTableStatus('site');
        $userTableStatus = $this->metadataProvider->getTableStatus('user');

        $siteCount = $siteTableStatus['Rows'];
        $userCount = $userTableStatus['Rows'];

        return array($siteCount, $userCount, $totalSpaceUsed);
    }
public function getGeneralInformation ( ) { Piwik :: checkUserHasSuperUserAccess ( ) ; // calculate total size $ totalSpaceUsed = 0 ; foreach ( $ this -> metadataProvider -> getAllTablesStatus ( ) as $ status ) { $ totalSpaceUsed += $ status [ 'Data_length' ] + $ status [ 'Index_length' ] ; } $ siteTableStatus = $ this -> metadataProvider -> getTableStatus ( 'site' ) ; $ userTableStatus = $ this -> metadataProvider -> getTableStatus ( 'user' ) ; $ siteCount = $ siteTableStatus [ 'Rows' ] ; $ userCount = $ userTableStatus [ 'Rows' ] ; return array ( $ siteCount , $ userCount , $ totalSpaceUsed ) ; }
Gets some general information about this Matomo installation, including the count of
websites tracked, the count of users and the total space used by the database.


@return array Contains the website count, user count and total space used by the database.
Gets some general information about this Matomo installation including the count of websites tracked the count of users and the total space used by the database .