White-space.
This commit is contained in:
parent
b716296203
commit
d1421ca5ab
|
@ -29,26 +29,29 @@
|
||||||
*/
|
*/
|
||||||
class OC_Connector_Sabre_CardDAV_AddressBook extends Sabre_CardDAV_AddressBook {
|
class OC_Connector_Sabre_CardDAV_AddressBook extends Sabre_CardDAV_AddressBook {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CardDAV backend
|
* CardDAV backend
|
||||||
*
|
*
|
||||||
* @var Sabre_CardDAV_Backend_Abstract
|
* @var Sabre_CardDAV_Backend_Abstract
|
||||||
*/
|
*/
|
||||||
private $carddavBackend;
|
private $carddavBackend;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param Sabre_CardDAV_Backend_Abstract $carddavBackend
|
* @param Sabre_CardDAV_Backend_Abstract $carddavBackend
|
||||||
* @param array $addressBookInfo
|
* @param array $addressBookInfo
|
||||||
*/
|
*/
|
||||||
public function __construct(Sabre_CardDAV_Backend_Abstract $carddavBackend, array $addressBookInfo) {
|
public function __construct(
|
||||||
|
Sabre_CardDAV_Backend_Abstract $carddavBackend,
|
||||||
|
array $addressBookInfo) {
|
||||||
|
|
||||||
$this->carddavBackend = $carddavBackend;
|
$this->carddavBackend = $carddavBackend;
|
||||||
$this->addressBookInfo = $addressBookInfo;
|
$this->addressBookInfo = $addressBookInfo;
|
||||||
parent::__construct($carddavBackend, $addressBookInfo);
|
parent::__construct($carddavBackend, $addressBookInfo);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a list of ACE's for this node.
|
* Returns a list of ACE's for this node.
|
||||||
*
|
*
|
||||||
|
@ -93,19 +96,19 @@ class OC_Connector_Sabre_CardDAV_AddressBook extends Sabre_CardDAV_AddressBook {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a card
|
* Returns a card
|
||||||
*
|
*
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @return OC_Connector_Sabre_DAV_Card
|
* @return OC_Connector_Sabre_DAV_Card
|
||||||
*/
|
*/
|
||||||
public function getChild($name) {
|
public function getChild($name) {
|
||||||
|
|
||||||
$obj = $this->carddavBackend->getCard($this->addressBookInfo['id'],$name);
|
$obj = $this->carddavBackend->getCard($this->addressBookInfo['id'],$name);
|
||||||
if (!$obj) throw new Sabre_DAV_Exception_NotFound('Card not found');
|
if (!$obj) throw new Sabre_DAV_Exception_NotFound('Card not found');
|
||||||
return new OC_Connector_Sabre_CardDAV_Card($this->carddavBackend,$this->addressBookInfo,$obj);
|
return new OC_Connector_Sabre_CardDAV_Card($this->carddavBackend,$this->addressBookInfo,$obj);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the full list of cards
|
* Returns the full list of cards
|
||||||
|
|
Loading…
Reference in New Issue