Streams_Access Class
Class representing 'Access' rows in the 'Streams' database You can create an object of this class either to access its non-static methods, or to actually represent a access row in the Streams database.
Item Index
Methods
__set_state
-
$array
Implements the __set_state method, so it can work with with var_export and be re-imported successfully.
Parameters:
-
$arrayArray
Returns:
Class instance
addPermission
-
$permission
Parameters:
-
$permissionString
afterRemoveExecute
-
$result -
$query
Keeps Access table consistent on row deletion and update avatar
Parameters:
-
$resultDb_ResultQuery result
-
$queryArrayThe query which has been excecuted
Returns:
beforeSave
-
$value
Check if one of ofUserId or ofContactLabel is set
Parameters:
-
$valueArrayThe array of fields
Returns:
beforeSaveExecute
-
$query -
$modifiedFields -
$where
Keeps Access table consistent on row insert/update and update avatar
Parameters:
-
$queryDb_QueryThe query being excecuted
-
$modifiedFieldsArrayModified fields
-
$whereArray | NullPrimary key value for existing row
Returns:
beforeSet_permissions
-
$value
Method is called before setting the field and verifies that, if it is a string, it contains a JSON array.
Parameters:
-
$valueString
Returns:
An array of field name and value
getAllPermissions
()
Array
Returns:
hasPermission
-
$permission
Parameters:
-
$permissionString
Returns:
isTemplateOwner
-
$publisherId -
$type -
[$user=null]
Check if user "owns" a stream template for a publisher
Parameters:
-
$publisherIdString -
$typeString -
[$user=null]String | Users_User optional
Returns:
removePermission
-
$permission
Parameters:
-
$permissionString
setUp
()
The setUp() method is called the first time an object of this class is constructed.