Пример #1
0
 /**
  * Creates a new PUT request object.
  *
  * The request object indicates, that the given $body should be stored in
  * the resource identified by $requestUri.
  * 
  * @param string $requestUri
  * @param string $body
  * @return void
  */
 public function __construct($requestUri, $body)
 {
     // Set from constructor values
     parent::__construct($requestUri);
     // Create properties
     $this->properties['body'] = (string) $body;
 }
Пример #2
0
 /**
  * Creates a new PROPPATCH request object.
  *
  * The $requestUri identifies the resources for which properties should be
  * patched.
  * 
  * @param string $requestUri
  * @return void
  */
 public function __construct($requestUri)
 {
     // Set from constructor values
     parent::__construct($requestUri);
     // Create properties
     $this->properties['updates'] = new ezcWebdavFlaggedPropertyStorage();
 }
Пример #3
0
 /**
  * Creates a new MOVE request object.
  *
  * Expected are the $requestUri, which references the source to move, and
  * the $destination, which is the URI referencing the destination resource
  * to move to.
  * 
  * @param string $requestUri
  * @param string $destination
  * @return void
  */
 public function __construct($requestUri, $destination)
 {
     // Set from constructor values
     parent::__construct($requestUri);
     $this->headers['Destination'] = $destination;
     // Set header defaults
     $this->headers['Overwrite'] = 'T';
     // Create properties
     $this->properties['propertyBehaviour'] = null;
 }
Пример #4
0
 /**
  * Creates a new LOCK request object.
  * Sets the defaults for the optional headers for this request. Expects the
  * URI of the request to be encapsulated.
  * 
  * @param string $requestUri
  * @return void
  */
 public function __construct($requestUri)
 {
     // Set from constructor values
     parent::__construct($requestUri);
     // Set header defaults
     $this->headers['Depth'] = ezcWebdavRequest::DEPTH_INFINITY;
     $this->headers['Timeout'] = null;
     // Create properties
     $this->properties['lockInfo'] = null;
 }
Пример #5
0
 /**
  * Creates a new PROPFIND request object.
  *
  * Sets the defaults for the optional headers for this request. The
  * $requestUri idenitifie the resource for which properties will be
  * searched.
  * 
  * @param string $requestUri
  * @return void
  */
 public function __construct($requestUri)
 {
     // Set from constructor values
     parent::__construct($requestUri);
     // Set header defaults
     $this->headers['Depth'] = ezcWebdavRequest::DEPTH_INFINITY;
     // Create properties
     $this->properties['allProp'] = false;
     $this->properties['propName'] = false;
     $this->properties['prop'] = null;
 }