original_string: protected function isLocationDataValid($locationData)
      {
          $isValidLocationData = false;
          list($pageUid, $table, $recordUid) = explode(':', $locationData);
          $pageRepository = $this->getTypoScriptFrontendController()->sys_page;
          $timeTracker = $this->getTimeTracker();
          if (empty($table) || $pageRepository->checkRecord($table, $recordUid, true)) {
              // This check means that a record is checked only if the locationData has a value for a
              // record else than the page.
              if (!empty($pageRepository->getPage($pageUid))) {
                  $isValidLocationData = true;
              } else {
                  $timeTracker->setTSlogMessage('LocationData Error: The page pointed to by location data "' . $locationData . '" was not accessible.', 2);
              }
          } else {
              $timeTracker->setTSlogMessage('LocationData Error: Location data "' . $locationData . '" record pointed to was not accessible.', 2);
          }
          return $isValidLocationData;
      }
code: protected function isLocationDataValid($locationData)
      {
          $isValidLocationData = false;
          list($pageUid, $table, $recordUid) = explode(':', $locationData);
          $pageRepository = $this->getTypoScriptFrontendController()->sys_page;
          $timeTracker = $this->getTimeTracker();
          if (empty($table) || $pageRepository->checkRecord($table, $recordUid, true)) {
              // This check means that a record is checked only if the locationData has a value for a
              // record else than the page.
              if (!empty($pageRepository->getPage($pageUid))) {
                  $isValidLocationData = true;
              } else {
                  $timeTracker->setTSlogMessage('LocationData Error: The page pointed to by location data "' . $locationData . '" was not accessible.', 2);
              }
          } else {
              $timeTracker->setTSlogMessage('LocationData Error: Location data "' . $locationData . '" record pointed to was not accessible.', 2);
          }
          return $isValidLocationData;
      }
code_tokens: protected function isLocationDataValid ( $ locationData ) { $ isValidLocationData = false ; list ( $ pageUid , $ table , $ recordUid ) = explode ( ':' , $ locationData ) ; $ pageRepository = $ this -> getTypoScriptFrontendController ( ) -> sys_page ; $ timeTracker = $ this -> getTimeTracker ( ) ; if ( empty ( $ table ) || $ pageRepository -> checkRecord ( $ table , $ recordUid , true ) ) { // This check means that a record is checked only if the locationData has a value for a // record else than the page. if ( ! empty ( $ pageRepository -> getPage ( $ pageUid ) ) ) { $ isValidLocationData = true ; } else { $ timeTracker -> setTSlogMessage ( 'LocationData Error: The page pointed to by location data "' . $ locationData . '" was not accessible.' , 2 ) ; } } else { $ timeTracker -> setTSlogMessage ( 'LocationData Error: Location data "' . $ locationData . '" record pointed to was not accessible.' , 2 ) ; } return $ isValidLocationData ; }
docstring: Checks if the given location data is valid and the connected record is accessible by the current user.
  
  @param string $locationData
  @return bool
docstring_tokens: Checks if the given location data is valid and the connected record is accessible by the current user .