original_string: protected function _isTokenInFilter(\Gems_Tracker_Token $token)
      {
          $result = false;
  
          // Only if token has a success code
          if ($token->getReceptionCode()->isSuccess()) {
              $result = true;
          }
  
          if ($result) {
              $tokenInfo = array(
                  'code'     => $token->getSurvey()->getCode(),
                  'surveyid' => $token->getSurveyId(),
                  'tokenid'  => $token->getTokenId()
              );
  
              // Now check if the tokenfilter is true
              if (empty($this->tokenFilter)) {
                  $result = true;
              } else {
                  $result = false;
                  // Now read the filter and split by track code or track id
                  foreach ($this->tokenFilter as $filter)
                  {
                      $remaining = array_diff_assoc($filter, $tokenInfo);
                      if (empty($remaining)) {
                          $result = true;
                          break;
                      }
                  }
              }
          }
  
          return $result;
      }
code: protected function _isTokenInFilter(\Gems_Tracker_Token $token)
      {
          $result = false;
  
          // Only if token has a success code
          if ($token->getReceptionCode()->isSuccess()) {
              $result = true;
          }
  
          if ($result) {
              $tokenInfo = array(
                  'code'     => $token->getSurvey()->getCode(),
                  'surveyid' => $token->getSurveyId(),
                  'tokenid'  => $token->getTokenId()
              );
  
              // Now check if the tokenfilter is true
              if (empty($this->tokenFilter)) {
                  $result = true;
              } else {
                  $result = false;
                  // Now read the filter and split by track code or track id
                  foreach ($this->tokenFilter as $filter)
                  {
                      $remaining = array_diff_assoc($filter, $tokenInfo);
                      if (empty($remaining)) {
                          $result = true;
                          break;
                      }
                  }
              }
          }
  
          return $result;
      }
code_tokens: protected function _isTokenInFilter ( \ Gems_Tracker_Token $ token ) { $ result = false ; // Only if token has a success code if ( $ token -> getReceptionCode ( ) -> isSuccess ( ) ) { $ result = true ; } if ( $ result ) { $ tokenInfo = array ( 'code' => $ token -> getSurvey ( ) -> getCode ( ) , 'surveyid' => $ token -> getSurveyId ( ) , 'tokenid' => $ token -> getTokenId ( ) ) ; // Now check if the tokenfilter is true if ( empty ( $ this -> tokenFilter ) ) { $ result = true ; } else { $ result = false ; // Now read the filter and split by track code or track id foreach ( $ this -> tokenFilter as $ filter ) { $ remaining = array_diff_assoc ( $ filter , $ tokenInfo ) ; if ( empty ( $ remaining ) ) { $ result = true ; break ; } } } } return $ result ; }
docstring: Determines if this particular token should be included
  in the report
  
  @param  \Gems_Tracker_Token $token
  @return boolean This dummy implementation always returns true
docstring_tokens: Determines if this particular token should be included in the report