original_string: public function isSnippetLanguageIncluded($obj) {
          if($obj instanceof SnippetLanguage) {
              if($this->_cache_language_ids===null) {
                  $this->populateLanguageIDs();
              }
              
              return (isset($this->_cache_language_ids[$obj->ID]) && $this->_cache_language_ids[$obj->ID]);
          }else if($obj instanceof Snippet) {
              if($this->_cache_snippet_ids===null) {
                  $this->populateSnippetIDs();
              }
              
              return (isset($this->_cache_snippet_ids[$obj->ID]) && $this->_cache_snippet_ids[$obj->ID]);
          }else if($obj instanceof SnippetFolder) {
              if($this->_cache_folder_ids===null) {
                  $this->populateFolderIDs();
              }
              
              return (isset($this->_cache_folder_ids[$obj->ID]) && $this->_cache_folder_ids[$obj->ID]);
          }
          
          return false;
      }
code: public function isSnippetLanguageIncluded($obj) {
          if($obj instanceof SnippetLanguage) {
              if($this->_cache_language_ids===null) {
                  $this->populateLanguageIDs();
              }
              
              return (isset($this->_cache_language_ids[$obj->ID]) && $this->_cache_language_ids[$obj->ID]);
          }else if($obj instanceof Snippet) {
              if($this->_cache_snippet_ids===null) {
                  $this->populateSnippetIDs();
              }
              
              return (isset($this->_cache_snippet_ids[$obj->ID]) && $this->_cache_snippet_ids[$obj->ID]);
          }else if($obj instanceof SnippetFolder) {
              if($this->_cache_folder_ids===null) {
                  $this->populateFolderIDs();
              }
              
              return (isset($this->_cache_folder_ids[$obj->ID]) && $this->_cache_folder_ids[$obj->ID]);
          }
          
          return false;
      }
code_tokens: public function isSnippetLanguageIncluded ( $ obj ) { if ( $ obj instanceof SnippetLanguage ) { if ( $ this -> _cache_language_ids === null ) { $ this -> populateLanguageIDs ( ) ; } return ( isset ( $ this -> _cache_language_ids [ $ obj -> ID ] ) && $ this -> _cache_language_ids [ $ obj -> ID ] ) ; } else if ( $ obj instanceof Snippet ) { if ( $ this -> _cache_snippet_ids === null ) { $ this -> populateSnippetIDs ( ) ; } return ( isset ( $ this -> _cache_snippet_ids [ $ obj -> ID ] ) && $ this -> _cache_snippet_ids [ $ obj -> ID ] ) ; } else if ( $ obj instanceof SnippetFolder ) { if ( $ this -> _cache_folder_ids === null ) { $ this -> populateFolderIDs ( ) ; } return ( isset ( $ this -> _cache_folder_ids [ $ obj -> ID ] ) && $ this -> _cache_folder_ids [ $ obj -> ID ] ) ; } return false ; }
docstring: Returns TRUE if the given snippet or language should be included in the tree.
  @param {SnippetLanguage|Snippet|SnippetFolder} $obj Object to be checked
  @return {bool} Returns boolean true if the snippet or language or folder should be included in the tree false otherwise
docstring_tokens: Returns TRUE if the given snippet or language should be included in the tree .