original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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.
docstring_tokens: Returns the list of the website IDs that received some visits since the specified timestamp . Requires Super User access .