Horde_Share_Object_Sqlng
extends Horde_Share_Object_Sql
in package
Extension of the Horde_Share_Object class for storing share information in the Sqlng driver.
Tags
Table of Contents
- VERSION = 1
- Serializable version.
- $availablePermissions : mixed
- A list of available permission.
- __construct() : mixed
- Constructor.
- __serialize() : array<string|int, mixed>
- __unserialize() : void
- serialize() : string
- Serialize this object.
- setPermission() : mixed
- Sets the permission of this share.
- unserialize() : mixed
- Reconstruct the object from serialized data.
- _save() : mixed
- Saves the current attribute values.
- _setAvailablePermissions() : mixed
- Populates the $availablePermissions property with all seen permissions.
Constants
VERSION
Serializable version.
public
mixed
VERSION
= 1
Properties
$availablePermissions
A list of available permission.
public
mixed
$availablePermissions
= array()
This is necessary to unset certain permission when updating existing share objects.
Methods
__construct()
Constructor.
public
__construct(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
-
Share data array.
Return values
mixed —__serialize()
public
__serialize() : array<string|int, mixed>
Return values
array<string|int, mixed> —__unserialize()
public
__unserialize(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
Return values
void —serialize()
Serialize this object.
public
serialize() : string
Return values
string —The serialized data.
setPermission()
Sets the permission of this share.
public
setPermission(Horde_Perms_Permission $perm[, bool $update = true ]) : mixed
Parameters
- $perm : Horde_Perms_Permission
-
Permission object.
- $update : bool = true
-
Should the share be saved after this operation?
Return values
mixed —unserialize()
Reconstruct the object from serialized data.
public
unserialize(string $data) : mixed
Parameters
- $data : string
-
The serialized data.
Return values
mixed —_save()
Saves the current attribute values.
protected
_save() : mixed
Return values
mixed —_setAvailablePermissions()
Populates the $availablePermissions property with all seen permissions.
protected
_setAvailablePermissions() : mixed
This is necessary because the share tables might be extended with arbitrary permissions.