original_string: protected function get_tag_collection() {
          if (empty($this->tagsoptions['tagcollid']) && (empty($this->tagsoptions['itemtype']) ||
                  empty($this->tagsoptions['component']))) {
              debugging('You need to specify \'itemtype\' and \'component\' of the tagged '
                      . 'area in the tags form element options',
                      DEBUG_DEVELOPER);
          }
          if (!empty($this->tagsoptions['tagcollid'])) {
              return $this->tagsoptions['tagcollid'];
          }
          if ($this->tagsoptions['itemtype']) {
              $this->tagsoptions['tagcollid'] = core_tag_area::get_collection($this->tagsoptions['component'],
                      $this->tagsoptions['itemtype']);
          } else {
              $this->tagsoptions['tagcollid'] = core_tag_collection::get_default();
          }
          return $this->tagsoptions['tagcollid'];
      }
code: protected function get_tag_collection() {
          if (empty($this->tagsoptions['tagcollid']) && (empty($this->tagsoptions['itemtype']) ||
                  empty($this->tagsoptions['component']))) {
              debugging('You need to specify \'itemtype\' and \'component\' of the tagged '
                      . 'area in the tags form element options',
                      DEBUG_DEVELOPER);
          }
          if (!empty($this->tagsoptions['tagcollid'])) {
              return $this->tagsoptions['tagcollid'];
          }
          if ($this->tagsoptions['itemtype']) {
              $this->tagsoptions['tagcollid'] = core_tag_area::get_collection($this->tagsoptions['component'],
                      $this->tagsoptions['itemtype']);
          } else {
              $this->tagsoptions['tagcollid'] = core_tag_collection::get_default();
          }
          return $this->tagsoptions['tagcollid'];
      }
code_tokens: protected function get_tag_collection ( ) { if ( empty ( $ this -> tagsoptions [ 'tagcollid' ] ) && ( empty ( $ this -> tagsoptions [ 'itemtype' ] ) || empty ( $ this -> tagsoptions [ 'component' ] ) ) ) { debugging ( 'You need to specify \'itemtype\' and \'component\' of the tagged ' . 'area in the tags form element options' , DEBUG_DEVELOPER ) ; } if ( ! empty ( $ this -> tagsoptions [ 'tagcollid' ] ) ) { return $ this -> tagsoptions [ 'tagcollid' ] ; } if ( $ this -> tagsoptions [ 'itemtype' ] ) { $ this -> tagsoptions [ 'tagcollid' ] = core_tag_area :: get_collection ( $ this -> tagsoptions [ 'component' ] , $ this -> tagsoptions [ 'itemtype' ] ) ; } else { $ this -> tagsoptions [ 'tagcollid' ] = core_tag_collection :: get_default ( ) ; } return $ this -> tagsoptions [ 'tagcollid' ] ; }
docstring: Finds the tag collection to use for standard tag selector
  
  @return int
docstring_tokens: Finds the tag collection to use for standard tag selector