original_string: function check_webdav() {
          $resp = $this->options();
          if (!$resp) {
              return false;
          }
          $this->_error_log($resp['header']['DAV']);
          // check schema
          if (preg_match('/1,2/', $resp['header']['DAV'])) {
              return true;
          }
          // otherwise return false
          return false;
      }
code: function check_webdav() {
          $resp = $this->options();
          if (!$resp) {
              return false;
          }
          $this->_error_log($resp['header']['DAV']);
          // check schema
          if (preg_match('/1,2/', $resp['header']['DAV'])) {
              return true;
          }
          // otherwise return false
          return false;
      }
code_tokens: function check_webdav ( ) { $ resp = $ this -> options ( ) ; if ( ! $ resp ) { return false ; } $ this -> _error_log ( $ resp [ 'header' ] [ 'DAV' ] ) ; // check schema if ( preg_match ( '/1,2/' , $ resp [ 'header' ] [ 'DAV' ] ) ) { return true ; } // otherwise return false return false ; }
docstring: Check's if server is a webdav compliant server.
  True if server returns a DAV Element in Header and when
  schema 1,2 is supported.
  @return bool true if server is webdav server. Otherwise false.
docstring_tokens: Check s if server is a webdav compliant server . True if server returns a DAV Element in Header and when schema 1 2 is supported .