original_string: public function is_plugintype_writable($plugintype) {
  
          $plugintypepath = $this->get_plugintype_root($plugintype);
  
          if (is_null($plugintypepath)) {
              throw new coding_exception('Unknown plugin type: '.$plugintype);
          }
  
          if ($plugintypepath === false) {
              throw new coding_exception('Plugin type location does not exist: '.$plugintype);
          }
  
          return is_writable($plugintypepath);
      }
code: public function is_plugintype_writable($plugintype) {
  
          $plugintypepath = $this->get_plugintype_root($plugintype);
  
          if (is_null($plugintypepath)) {
              throw new coding_exception('Unknown plugin type: '.$plugintype);
          }
  
          if ($plugintypepath === false) {
              throw new coding_exception('Plugin type location does not exist: '.$plugintype);
          }
  
          return is_writable($plugintypepath);
      }
code_tokens: public function is_plugintype_writable ( $ plugintype ) { $ plugintypepath = $ this -> get_plugintype_root ( $ plugintype ) ; if ( is_null ( $ plugintypepath ) ) { throw new coding_exception ( 'Unknown plugin type: ' . $ plugintype ) ; } if ( $ plugintypepath === false ) { throw new coding_exception ( 'Plugin type location does not exist: ' . $ plugintype ) ; } return is_writable ( $ plugintypepath ) ; }
docstring: Is it possible to create a new plugin directory for the given plugin type?
  
  @throws coding_exception for invalid plugin types or non-existing plugin type locations
  @param string $plugintype
  @return boolean
docstring_tokens: Is it possible to create a new plugin directory for the given plugin type?