24 parent::__construct(
$path, []);
50 function handle($propertyName, $valueOrCallBack) {
52 if (is_callable($valueOrCallBack)) {
53 $value = $valueOrCallBack();
55 $value = $valueOrCallBack;
57 if (!is_null($value)) {
58 $this->result[$propertyName] = [200, $value];
74 function set($propertyName, $value, $status = null) {
76 if (is_null($status)) {
77 $status = is_null($value) ? 404 : 200;
79 $this->result[$propertyName] = [$status, $value];
89 function get($propertyName) {
91 return isset($this->result[$propertyName]) ? $this->result[$propertyName][1] : null;
106 return isset($this->result[$propertyName]) ? $this->result[$propertyName][0] : 404;
119 foreach ($this->result as $propertyName => $stuff) {
120 if ($stuff[0] === 404) {
126 $result[] =
'{http://sabredav.org/ns}idk';
This class is used by the browser plugin to trick the system in returning every defined property...
This class holds all the information about a PROPFIND request.
handle($propertyName, $valueOrCallBack)
Handles a specific property.
getStatus($propertyName)
Returns the current status code for a property name.
get404Properties()
Returns all propertynames that have a 404 status, and thus don't have a value yet.
__construct($path)
Creates the PROPFIND object.