public function getSitesIdWithVisits($timestamp = false)
    {
        Piwik::checkUserHasSuperUserAccess();

        if (empty($timestamp)) $timestamp = time();

        $time   = Date::factory((int)$timestamp)->getDatetime();
        $now    = Date::now()->addHour(1)->getDatetime();

        $result = $this->getModel()->getSitesWithVisits($time, $now);

        $idSites = array();
        foreach ($result as $idSite) {
            $idSites[] = $idSite['idsite'];
        }

        return $idSites;
    }
public function getSitesIdWithVisits($timestamp = false)
    {
        Piwik::checkUserHasSuperUserAccess();

        if (empty($timestamp)) $timestamp = time();

        $time   = Date::factory((int)$timestamp)->getDatetime();
        $now    = Date::now()->addHour(1)->getDatetime();

        $result = $this->getModel()->getSitesWithVisits($time, $now);

        $idSites = array();
        foreach ($result as $idSite) {
            $idSites[] = $idSite['idsite'];
        }

        return $idSites;
    }
public function getSitesIdWithVisits ( $ timestamp = false ) { Piwik :: checkUserHasSuperUserAccess ( ) ; if ( empty ( $ timestamp ) ) $ timestamp = time ( ) ; $ time = Date :: factory ( ( int ) $ timestamp ) -> getDatetime ( ) ; $ now = Date :: now ( ) -> addHour ( 1 ) -> getDatetime ( ) ; $ result = $ this -> getModel ( ) -> getSitesWithVisits ( $ time , $ now ) ; $ idSites = array ( ) ; foreach ( $ result as $ idSite ) { $ idSites [ ] = $ idSite [ 'idsite' ] ; } return $ idSites ; }
Returns the list of the website IDs that received some visits since the specified timestamp.
Requires Super User access.

@param bool|int $timestamp
@return array The list of website IDs
@deprecated since 2.15 This method will be removed in Matomo 3.0, there is no replacement.
Returns the list of the website IDs that received some visits since the specified timestamp . Requires Super User access .