original_string: protected function check_known_block_type($blockname, $includeinvisible = false) {
          if (!$this->is_known_block_type($blockname, $includeinvisible)) {
              if ($this->is_known_block_type($blockname, true)) {
                  throw new coding_exception('Unknown block type ' . $blockname);
              } else {
                  throw new coding_exception('Block type ' . $blockname . ' has been disabled by the administrator.');
              }
          }
      }
code: protected function check_known_block_type($blockname, $includeinvisible = false) {
          if (!$this->is_known_block_type($blockname, $includeinvisible)) {
              if ($this->is_known_block_type($blockname, true)) {
                  throw new coding_exception('Unknown block type ' . $blockname);
              } else {
                  throw new coding_exception('Block type ' . $blockname . ' has been disabled by the administrator.');
              }
          }
      }
code_tokens: protected function check_known_block_type ( $ blockname , $ includeinvisible = false ) { if ( ! $ this -> is_known_block_type ( $ blockname , $ includeinvisible ) ) { if ( $ this -> is_known_block_type ( $ blockname , true ) ) { throw new coding_exception ( 'Unknown block type ' . $ blockname ) ; } else { throw new coding_exception ( 'Block type ' . $ blockname . ' has been disabled by the administrator.' ) ; } } }
docstring: Check if a block type is known and usable
  
  @param string $blockname The block type name to search for
  @param bool $includeinvisible Include disabled block types in the initial pass
  @return void Coding Exception thrown if unknown or not enabled
docstring_tokens: Check if a block type is known and usable