Lines Matching +full:fetch +full:- +full:depth
22 * fetch every property, because it was used so often and it's so heavy
40 * @param int $depth
43 function __construct($path, array $properties, $depth = 0, $requestType = self::NORMAL) { argument
45 $this->path = $path;
46 $this->properties = $properties;
47 $this->depth = $depth;
48 $this->requestType = $requestType;
51 $this->properties = [
55 '{DAV:}quota-used-bytes',
56 '{DAV:}quota-available-bytes',
62 foreach ($this->properties as $propertyName) {
65 $this->result[$propertyName] = [404, null];
68 $this->itemsLeft = count($this->result);
81 * $propFind->handle('{DAV:}displayname', function() {
96 …if ($this->itemsLeft && isset($this->result[$propertyName]) && $this->result[$propertyName][0] ===…
103 $this->itemsLeft--;
104 $this->result[$propertyName] = [200, $value];
113 * If status is not supplied, the status will default to 200 for non-null
128 if (!isset($this->result[$propertyName])) {
129 if ($this->requestType === self::ALLPROPS) {
130 $this->result[$propertyName] = [$status, $value];
134 if ($status !== 404 && $this->result[$propertyName][0] === 404) {
135 $this->itemsLeft--;
136 } elseif ($status === 404 && $this->result[$propertyName][0] !== 404) {
137 $this->itemsLeft++;
139 $this->result[$propertyName] = [$status, $value];
151 return isset($this->result[$propertyName]) ? $this->result[$propertyName][1] : null;
166 return isset($this->result[$propertyName]) ? $this->result[$propertyName][0] : null;
178 $this->path = $path;
189 return $this->path;
194 * Returns the depth of this propfind request.
200 return $this->depth;
205 * Updates the depth of this propfind request.
207 * @param int $depth
210 function setDepth($depth) { argument
212 $this->depth = $depth;
224 if ($this->itemsLeft === 0) {
228 foreach ($this->result as $propertyName => $stuff) {
246 return $this->properties;
257 return $this->requestType === self::ALLPROPS;
279 foreach ($this->result as $propertyName => $info) {
286 // Removing the 404's for multi-status requests.
287 if ($this->requestType === self::ALLPROPS) unset($r[404]);
300 * The Depth of the request.
307 protected $depth = 0; variable in Sabre\\DAV\\PropFind