示例#1
0
 /**
  * Creates a new ezcWebdavSourceProperty.
  *
  * The given array must contain instances of {@link
  * ezcWebdavSourcePropertyLink}.
  * 
  * @param array(ezcWebdavSourcePropertyLink) $links
  * @return void
  */
 public function __construct(array $links = array())
 {
     parent::__construct('source');
     $this->links = $links;
 }
示例#2
0
 /**
  * Creates a new ezcWebdavSourceProperty.
  *
  * The $src parameter is the requested path, while the $dst parameter
  * indicate the source URI.
  * 
  * @param string $src Link source (URI).
  * @param string $dst Link destination (URI).
  * @return void
  */
 public function __construct($src = null, $dst = null)
 {
     parent::__construct('link');
     $this->src = $src;
     $this->dst = $dst;
 }
 /**
  * Creates a new ezcWebdavGetContentLengthProperty.
  * 
  * Creates a new ezcWebdavGetContentLengthProperty with the given length.
  * The length should be given as a string to avoid integer overflows.
  *
  * @param string $length The length.
  * @return void
  */
 public function __construct($length = null)
 {
     parent::__construct('getcontentlength');
     $this->length = $length;
 }
示例#4
0
 /**
  * Creates a new ezcWebdavResourceTypeProperty.
  *
  * The given $type indicates either a collection or non-collection
  * resource ({@link self::TYPE_COLLECTION} or {@link
  * self::TYPE_RESOURCE}).
  * 
  * @param int $type
  * @return void
  */
 public function __construct($type = null)
 {
     parent::__construct('resourcetype');
     $this->properties['type'] = null;
     $this->type = $type;
 }
 /**
  * Creates a new ezcWebdavGetContentTypeProperty.
  *
  * The $mime must be a string representing a valid MIME type (e.g.
  * 'text/plain'). An optional characterset can be defined (e.g. 'UTF-8').
  * 
  * @param string $mime
  * @param string $charset
  * @return void
  */
 public function __construct($mime = null, $charset = null)
 {
     parent::__construct('getcontenttype');
     $this->mime = $mime;
     $this->charset = $charset;
 }
 /**
  * Creates a new ezcWebdavCreationDateProperty.
  *
  * The given $date object represents the time value stored in the property.
  * 
  * @param ezcWebdavDateTime $date The date value.
  * @return void
  */
 public function __construct(ezcWebdavDateTime $date = null)
 {
     parent::__construct('creationdate');
     $this->date = $date;
 }
 /**
  * Creates a new ezcWebdavSupportedLockPropertyLockentry.
  *
  * The given $lockScope and $lockType indicate a combination of lock
  * supported by the server.
  * 
  * @param int $lockType  Lock type (constant TYPE_*).
  * @param int $lockScope Lock scope (constant SCOPE_*).
  * @return void
  */
 public function __construct($lockType = ezcWebdavLockRequest::TYPE_READ, $lockScope = ezcWebdavLockRequest::SCOPE_SHARED)
 {
     parent::__construct('lockentry');
     $this->lockType = $lockType;
     $this->lockScope = $lockScope;
 }
 /**
  * Creates a new ezcWebdavGetContentLanguageProperty.
  *
  * The given array must contain strings that represent language shortcuts.
  * 
  * @param array(string) $languages
  * @return void
  */
 public function __construct(array $languages = array())
 {
     parent::__construct('getcontentlanguage');
     $this->languages = $languages;
 }
 /**
  * Creates a new ezcWebdavSourceProperty.
  *
  * The $lockEntry parameter must be an array of {@link
  * ezcWebdavSupportedLockPropertyLockentry} instances.
  * 
  * @param ArrayObject(ezcWebdavSupportedLockPropertyLockentry) $lockEntries
  * @return void
  */
 public function __construct(ArrayObject $lockEntries = null)
 {
     parent::__construct('supportedlock');
     $this->lockEntries = $lockEntries === null ? new ArrayObject() : $lockEntries;
 }
示例#10
0
 /**
  * Creates a new ezcWebdavDisplayNameProperty.
  *
  * The $name paramater is the display name.
  * 
  * @param string $name The display name.
  * @return void
  */
 public function __construct($name = null)
 {
     parent::__construct('displayname');
     $this->displayName = $name;
 }
示例#11
0
 /**
  * Creates a new ezcWebdavGetEtagProperty.
  *
  * The given $etag is used as the ETag.
  * 
  * @param string $etag The etag.
  * @return void
  */
 public function __construct($etag = null)
 {
     parent::__construct('getetag');
     $this->etag = $etag;
 }
示例#12
0
 /**
  * Creates a new ezcWebdavGetLastModifiedProperty.
  *
  * The $date parameter indicates the last modification time of the affected
  * resource.
  * 
  * @param ezcWebdavDateTime $date
  * @return void
  */
 public function __construct(ezcWebdavDateTime $date = null)
 {
     parent::__construct('getlastmodified');
     $this->date = $date;
 }
示例#13
0
 /**
  * Creates a new ezcWebdavLockDiscoveryProperty.
  *
  * The given array must contain instances of {@link
  * ezcWebdavLockDiscoveryPropertyActiveLock}.
  * 
  * @param ArrayObject(ezcWebdavLockDiscoveryPropertyActiveLock) $activeLock
  */
 public function __construct(ArrayObject $activeLock = null)
 {
     parent::__construct('lockdiscovery');
     $this->activeLock = $activeLock === null ? new ArrayObject() : $activeLock;
 }