Logo Search packages:      
Sourcecode: davical version File versions  Download package

CalDAVRequest::UnsupportedRequest ( unsupported )

Sometimes it's a perfectly formed request, but we just don't do that :-(

Parameters:
array$unsupportedAn array of the properties we don't support.

Definition at line 651 of file CalDAVRequest.php.

References XMLResponse().

                                              {
    if ( isset($unsupported) && count($unsupported) > 0 ) {
      $badprops = new XMLElement( "prop" );
      foreach( $unsupported AS $k => $v ) {
        // Not supported at this point...
        dbg_error_log("ERROR", " %s: Support for $v:$k properties is not implemented yet", $this->method );
        $badprops->NewElement(strtolower($k),false,array("xmlns" => strtolower($v)));
      }
      $error = new XMLElement("error", $badprops, array("xmlns" => "DAV:") );

      $this->XMLResponse( 422, $error );
    }
  }

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index