original_string: public function isCached($id) {
          if ($id != null) {
              $id = $this->getIDfromOjb($id);
          }
  
          if ($id == null)
              return false;
  
          $cachefile = $this->getConfig('cacheDir') . '/' . utf8_decode($id);
          $cachetime = $this->getConfig('cacheTime');
  
          if (file_exists($cachefile) && time() - $cachetime < fileatime($cachefile)) {
              return true;
          }
  
          return false;
      }
code: public function isCached($id) {
          if ($id != null) {
              $id = $this->getIDfromOjb($id);
          }
  
          if ($id == null)
              return false;
  
          $cachefile = $this->getConfig('cacheDir') . '/' . utf8_decode($id);
          $cachetime = $this->getConfig('cacheTime');
  
          if (file_exists($cachefile) && time() - $cachetime < fileatime($cachefile)) {
              return true;
          }
  
          return false;
      }
code_tokens: public function isCached ( $ id ) { if ( $ id != null ) { $ id = $ this -> getIDfromOjb ( $ id ) ; } if ( $ id == null ) return false ; $ cachefile = $ this -> getConfig ( 'cacheDir' ) . '/' . utf8_decode ( $ id ) ; $ cachetime = $ this -> getConfig ( 'cacheTime' ) ; if ( file_exists ( $ cachefile ) && time ( ) - $ cachetime < fileatime ( $ cachefile ) ) { return true ; } return false ; }
docstring: check, if key or object in first parameter is cached. Returns true, if cached
  @param $id key of cached object or value
  @return bool
docstring_tokens: check if key or object in first parameter is cached . Returns true if cached