original_string: public function getAllUsersPreferences(array $preferenceNames)
      {
          Piwik::checkUserHasSuperUserAccess();
  
          $userPreferences = array();
          foreach($preferenceNames as $preferenceName) {
              $optionNameMatchAllUsers = $this->getPreferenceId('%', $preferenceName);
              $preferences = Option::getLike($optionNameMatchAllUsers);
  
              foreach($preferences as $optionName => $optionValue) {
                  $lastUnderscore = strrpos($optionName, self::OPTION_NAME_PREFERENCE_SEPARATOR);
                  $userName = substr($optionName, 0, $lastUnderscore);
                  $preference = substr($optionName, $lastUnderscore + 1);
                  $userPreferences[$userName][$preference] = $optionValue;
              }
          }
          return $userPreferences;
      }
code: public function getAllUsersPreferences(array $preferenceNames)
      {
          Piwik::checkUserHasSuperUserAccess();
  
          $userPreferences = array();
          foreach($preferenceNames as $preferenceName) {
              $optionNameMatchAllUsers = $this->getPreferenceId('%', $preferenceName);
              $preferences = Option::getLike($optionNameMatchAllUsers);
  
              foreach($preferences as $optionName => $optionValue) {
                  $lastUnderscore = strrpos($optionName, self::OPTION_NAME_PREFERENCE_SEPARATOR);
                  $userName = substr($optionName, 0, $lastUnderscore);
                  $preference = substr($optionName, $lastUnderscore + 1);
                  $userPreferences[$userName][$preference] = $optionValue;
              }
          }
          return $userPreferences;
      }
code_tokens: public function getAllUsersPreferences ( array $ preferenceNames ) { Piwik :: checkUserHasSuperUserAccess ( ) ; $ userPreferences = array ( ) ; foreach ( $ preferenceNames as $ preferenceName ) { $ optionNameMatchAllUsers = $ this -> getPreferenceId ( '%' , $ preferenceName ) ; $ preferences = Option :: getLike ( $ optionNameMatchAllUsers ) ; foreach ( $ preferences as $ optionName => $ optionValue ) { $ lastUnderscore = strrpos ( $ optionName , self :: OPTION_NAME_PREFERENCE_SEPARATOR ) ; $ userName = substr ( $ optionName , 0 , $ lastUnderscore ) ; $ preference = substr ( $ optionName , $ lastUnderscore + 1 ) ; $ userPreferences [ $ userName ] [ $ preference ] = $ optionValue ; } } return $ userPreferences ; }
docstring: Returns an array of Preferences
  @param $preferenceNames array of preference names
  @return array
  @ignore
docstring_tokens: Returns an array of Preferences