mirror of
https://codeberg.org/icewind/SearchDAV.git
synced 2026-06-04 01:54:07 +02:00
minor fixes
This commit is contained in:
parent
d3eb42cd90
commit
acb32ab84d
15 changed files with 60 additions and 47 deletions
|
|
@ -23,6 +23,7 @@ namespace SearchDAV\XML;
|
|||
|
||||
use Sabre\Xml\Writer;
|
||||
use Sabre\Xml\XmlSerializable;
|
||||
use SearchDAV\Backend\SearchPropertyDefinition;
|
||||
|
||||
class PropDesc implements XmlSerializable {
|
||||
/**
|
||||
|
|
@ -46,6 +47,13 @@ class PropDesc implements XmlSerializable {
|
|||
*/
|
||||
public $sortable;
|
||||
|
||||
public function __construct(SearchPropertyDefinition $propertyDefinition) {
|
||||
$this->dataType = $propertyDefinition->dataType;
|
||||
$this->sortable = $propertyDefinition->sortable;
|
||||
$this->selectable = $propertyDefinition->selectable;
|
||||
$this->searchable = $propertyDefinition->searchable;
|
||||
}
|
||||
|
||||
public function xmlSerialize(Writer $writer): void {
|
||||
$data = [
|
||||
'{DAV:}dataType' => [$this->dataType => null]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue