-
Notifications
You must be signed in to change notification settings - Fork 12
added methods for CardDAV-implementation #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lduer
wants to merge
31
commits into
secotrust:master
Choose a base branch
from
lduer:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
083dcbb
updated auth-backend
lduer 371d5ff
Updated plugin- & base-config; modified route
lduer c81f0d6
Added principal-backend
lduer 4dfb80e
Added CardDAV & CalDAV-Backends
lduer b40b1bc
removed empty parameter; simpler check for existing vars
lduer b573ac8
replace request_stack by request
lduer 8a2ca23
implemented sabre-dav 2.*; optimized php-interfaces; added BasicAuth …
lduer b53bb0c
updated plugin-config for carddav & principal
lduer 3343684
added acl-plugin to configure the DAVACL in the security-manager exte…
lduer 5556c5a
added browser-plugin class
lduer b4a164d
updated principal membership; updated controller & parameter setting;
lduer 970d639
updated FOSUserBundle-Version
lduer 1bf48da
bugfix: throw exception only if principal is not found!
lduer 1c17e62
implementation of sabre/dav 3.0 changes
lduer 0cd24bb
improvements in php-vdocs & -code
lduer 56f4c9f
updated code with "PHP Coding Standards Fixer"; added php_cs config
lduer 10e12c1
Add basic config description
bartv2 68207c2
Replace deprecated 'pattern' in routing.xml
bartv2 c9d4c49
Change secotrust.sabredav.caldav_collection.class to new name
bartv2 d1afe0b
Update CalDavBackend to new version
bartv2 3e0fd51
Fix indent
bartv2 0cbcddf
Document using principal backend
bartv2 452e2fd
Use UserManager to find all users
bartv2 ae9ca0b
Merge pull request #1 from bartv2/master
lduer 1203774
removed unused event-dispatcher
lduer 5999766
updated code-style (removed tab-characters); removed unused vars
lduer 5fff3fa
updated base_uri configuration for symfony router-base
lduer ef9eb3f
added client list to docs
lduer 751cc30
updated to psr-4
lduer cdc21b8
updated sabre/dav version requirement
lduer 1958b89
Update symfony framework version requirement
lduer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
$finder = Symfony\CS\Finder\DefaultFinder::create() | ||
->in(__DIR__) | ||
; | ||
|
||
return Symfony\CS\Config\Config::create() | ||
->fixers(array('-psr0')) | ||
->finder($finder) | ||
; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
<?php | ||
|
||
namespace Secotrust\Bundle\SabreDavBundle\Entity; | ||
|
||
/** | ||
* Class AddressbookInterface. | ||
* | ||
* @author lduer | ||
*/ | ||
interface AddressbookInterface | ||
{ | ||
/** | ||
* Get id. | ||
* | ||
* @return int | ||
*/ | ||
public function getId(); | ||
|
||
/** | ||
* Get label. | ||
* | ||
* @return string | ||
*/ | ||
public function getLabel(); | ||
|
||
/** | ||
* Set label. | ||
* | ||
* @param string $label | ||
* | ||
* @return $this | ||
*/ | ||
public function setLabel($label); | ||
|
||
/** | ||
* Get description. | ||
* | ||
* @return string | ||
*/ | ||
public function getDescription(); | ||
|
||
/** | ||
* Set description. | ||
* | ||
* @param string $description | ||
* | ||
* @return $this | ||
*/ | ||
public function setDescription($description); | ||
|
||
/** | ||
* Get the synctoken of the current CTag. | ||
* | ||
* @return string | ||
*/ | ||
public function getSynctoken(); | ||
|
||
/** | ||
* updates the synctoken of the current Group. | ||
* | ||
* @return $this | ||
*/ | ||
public function updateSynctoken(); | ||
|
||
/** | ||
* get the Uri. | ||
* | ||
* @return string | ||
*/ | ||
public function getUri(); | ||
|
||
/** | ||
* Get all Cars for current Addressbook. | ||
* | ||
* @return array | ||
*/ | ||
public function getCards(); | ||
|
||
/** | ||
* Search Card by URI in current Addressbook. | ||
* | ||
* @param string $uri | ||
*/ | ||
public function findCard($uri); | ||
|
||
/** | ||
* Adds the given card to the current Addressbook. | ||
* | ||
* @param \Secotrust\Bundle\SabreDavBundle\Entity\CardInterface $card | ||
*/ | ||
public function addCard(CardInterface $card); | ||
|
||
/** | ||
* Remove the given card from the current Addressbook. | ||
* | ||
* Caution: Check the field-configuration & your field-connections<br> | ||
* and use the desired setting, if you want to delete the cards <br> | ||
* - either only from the current Addressbook <br> | ||
* - or from the cards-table too | ||
* | ||
* @param \Secotrust\Bundle\SabreDavBundle\Entity\CardInterface $card | ||
* | ||
* @return bool | ||
*/ | ||
public function removeCard(CardInterface $card); | ||
|
||
/** | ||
* Remove all Cards from current Addressbook. | ||
* | ||
* Possible solution: use <code>$cards = $this->getCards()</code> and | ||
* <code>$this->removeCard($card)</code> to remove all cards | ||
*/ | ||
public function removeAllCards(); | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this used? Can't find the param usage