PHP 클래스 Horde_Share_Object_Kolab, horde

Copyright 2004-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
상속: extends Horde_Share_Object, implements Serializable, implements Horde_Perms_Permission_Kolab_Storage
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_data array The share attributes.

공개 메소드들

메소드 설명
__construct ( string $id, Horde_Group_Base $groups, array $data = [] ) Constructor.
countChildren ( string $user, integer $perm = Horde_Perms::SHOW, boolean $allLevels = true ) : integer Return a count of the number of children this share has
deleteAcl ( string $user ) : null Delete Kolab specific access rights for this share.
get ( string $attribute ) : mixed Returns an attribute value from this object.
getAcl ( ) : An Retrieve the Kolab specific access rights for this share.
getChildren ( string $user, integer $perm = Horde_Perms::SHOW, boolean $allLevels = true ) : array Get all children of this share.
getId ( ) : string Returns the ID of this share.
getName ( ) : string Returns the name of this share.
getOwner ( ) : string Returns the owner of this share.
getParent ( ) : Horde_Share_Object | null Returns a child's direct parent.
getParents ( ) : array() Get all of this share's parents.
getPermission ( ) : Horde_Perms_Permission_Kolab Returns the permissions from this storage object.
getPermissionId ( ) : string Returns the permission ID of this share.
hasPermission ( string $userid, integer $permission, string $creator = null ) : boolean Checks to see if a user has a given permission.
serialize ( ) : string Serialize this object.
set ( string $attribute, mixed $value, boolean $update = false ) : null Sets an attribute value in this object.
setAcl ( string $user, string $acl ) : null Set the Kolab specific access rights for this share.
setParent ( mixed $parent ) : null Set the parent object for this share.
setPermission ( Horde_Perms_Permission_Kolab $perms, boolean $update = true ) : null Sets the permissions on the share.
unserialize ( $data ) Unserialize object.

보호된 메소드들

메소드 설명
_save ( ) Saves the current attribute values.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $id, Horde_Group_Base $groups, array $data = [] )
$id string The share id.
$groups Horde_Group_Base The Horde_Group driver
$data array The share data.

_save() 보호된 메소드

Saves the current attribute values.
protected _save ( )

countChildren() 공개 메소드

Return a count of the number of children this share has
public countChildren ( string $user, integer $perm = Horde_Perms::SHOW, boolean $allLevels = true ) : integer
$user string The user to use for checking perms
$perm integer A Horde_Perms::* constant
$allLevels boolean Count grandchildren or just children
리턴 integer The number of child shares

deleteAcl() 공개 메소드

Delete Kolab specific access rights for this share.
public deleteAcl ( string $user ) : null
$user string The user to delete the ACL for.
리턴 null

get() 공개 메소드

Returns an attribute value from this object.
public get ( string $attribute ) : mixed
$attribute string The attribute to return.
리턴 mixed The value for $attribute.

getAcl() 공개 메소드

Retrieve the Kolab specific access rights for this share.
public getAcl ( ) : An
리턴 An array of rights.

getChildren() 공개 메소드

Get all children of this share.
public getChildren ( string $user, integer $perm = Horde_Perms::SHOW, boolean $allLevels = true ) : array
$user string The user to use for checking perms
$perm integer Horde_Perms::* constant. If NULL will return all shares regardless of permissions.
$allLevels boolean Return all levels.
리턴 array An array of Horde_Share_Object objects

getId() 공개 메소드

Returns the ID of this share.
public getId ( ) : string
리턴 string The share's ID.

getName() 공개 메소드

Returns the name of this share.
public getName ( ) : string
리턴 string The share's name.

getOwner() 공개 메소드

Returns the owner of this share.
public getOwner ( ) : string
리턴 string The share's owner.

getParent() 공개 메소드

Returns a child's direct parent.
public getParent ( ) : Horde_Share_Object | null
리턴 Horde_Share_Object | null The direct parent Horde_Share_Object or NULL in case the share has no parent.

getParents() 공개 메소드

Get all of this share's parents.
public getParents ( ) : array()
리턴 array()

getPermission() 공개 메소드

Returns the permissions from this storage object.
public getPermission ( ) : Horde_Perms_Permission_Kolab
리턴 Horde_Perms_Permission_Kolab The permissions on the share.

getPermissionId() 공개 메소드

Returns the permission ID of this share.
public getPermissionId ( ) : string
리턴 string The share's permission ID.

hasPermission() 공개 메소드

Checks to see if a user has a given permission.
public hasPermission ( string $userid, integer $permission, string $creator = null ) : boolean
$userid string The userid of the user.
$permission integer A Horde_Perms::* constant to test for.
$creator string The creator of the shared object.
리턴 boolean Whether or not $userid has $permission.

serialize() 공개 메소드

Serialize this object.
public serialize ( ) : string
리턴 string The serialized data.

set() 공개 메소드

Sets an attribute value in this object.
public set ( string $attribute, mixed $value, boolean $update = false ) : null
$attribute string The attribute to set.
$value mixed The value for $attribute.
$update boolean Update *only* this change immediately.
리턴 null

setAcl() 공개 메소드

Set the Kolab specific access rights for this share.
public setAcl ( string $user, string $acl ) : null
$user string The user to set the ACL for.
$acl string The ACL.
리턴 null

setParent() 공개 메소드

Set the parent object for this share.
public setParent ( mixed $parent ) : null
$parent mixed A Horde_Share object or share id for the parent.
리턴 null

setPermission() 공개 메소드

Sets the permissions on the share.
public setPermission ( Horde_Perms_Permission_Kolab $perms, boolean $update = true ) : null
$perms Horde_Perms_Permission_Kolab Permission object to folder on the object.
$update boolean Save the updated information?
리턴 null

unserialize() 공개 메소드

Unserialize object.
public unserialize ( $data )
$data

프로퍼티 상세

$_data 보호되어 있는 프로퍼티

The share attributes.
protected array $_data
리턴 array