Difference between #4 and #5 of
Implementing a WebDAV server using SabreDAV

Revision #5 has been created by jwerner on May 8, 2013, 9:26:00 AM with the memo:

Added php tags to some classes; Added import/uses to ClientController class
« previous (#4) next (#6) »

Changes

Title unchanged

Implementing a WebDAV server using SabreDAV

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

WebDAV, CalDAV, CardDAV, SabreDAV, calendar, events, addressbook, address book, vcard

Content changed

[...]
Below is a simple, stripped from comments example of a principal backend, along with three methods in the User model class.


```php
<?php
 
 
use Sabre\DAV;
use Sabre\DAVACL;
[...]
```php
<?php
 
class User extends BaseUser
{
public static function model($className=__CLASS__) {
[...]
```php
<?php

 
Yii::setPathOfAlias('Sabre', Yii::getPathOfAlias('application.vendors.Sabre'));
 
 
use Sabre\DAV;
 
 
class ClientController extends Controller {
protected $davSettings = array(
'baseUri' => 'dav/',
// a special auth backend was provided for SabreDAV that authenticates users
// already logged into Yii, so no username or password is sent
'userName' => null,
[...]
5 0
8 followers
Viewed: 43 867 times
Version: Unknown (update)
Category: Tutorials
Written by: nineinchnick
Last updated by: nineinchnick
Created on: May 3, 2013
Last updated: 11 years ago
Update Article

Revisions

View all history