Class Principal
A class for things to do with a Principal
Direct known subclasses
DAVPrincipal
Package: davical\Principal
Copyright: Morphoss Ltd http://www.morhposs.com/
License: GNU GPL v2 or later
Author: Andrew McMillan andrew@mcmillan.net.nz
Located at Principal.php
Copyright: Morphoss Ltd http://www.morhposs.com/
License: GNU GPL v2 or later
Author: Andrew McMillan andrew@mcmillan.net.nz
Located at Principal.php
public static
|
|
public
|
#
__construct( string $type, mixed $value, boolean $use_cache = true )
Construct a new Principal object. The principal record will be retrieved from the database, or (if not found) initialised to a new record. You can test for whether the Principal exists by calling the Exists() method on the returned object. |
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
string
|
|
public
integer
|
|
public
string
|
|
public
string
|
|
public
string
|
|
protected
|
|
protected
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public static
|
|
public static
|
protected
|
$username
Columns from the database |
|
protected
|
$user_no
|
|
protected
|
$principal_id
|
|
protected
|
$email
|
|
protected
|
$dav_name
|
|
public
|
$user_active
|
|
public
|
$created
|
|
public
|
$modified
|
|
public
|
$password
|
|
public
|
$fullname
|
|
public
|
$email_ok
|
|
public
|
$date_format_type
|
|
public
|
$locale
|
|
public
|
$type_id
|
|
public
|
$displayname
|
|
public
|
$default_privileges
|
|
public
|
$is_principal
|
|
public
|
$is_calendar
|
|
public
|
$collection_id
|
|
public
|
$is_addressbook
|
|
public
|
$resourcetypes
|
|
public
|
$privileges
|
|
protected
boolean
|
$exists
Whether this Principal actually exists in the database yet. |
|
protected
The
|
$url
home URL of the principal |
|
protected
The
|
$original_request_url
actual requested URL for this principal, when the request was for /principals/... or such |
|
protected
boolean
|
$by_email
Whether this was retrieved using an e-mail address |
|
protected
|
$collections
|
|
protected
|
$dead_properties
|
|
protected
|
$default_calendar
|