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:
-
$array
Array
Returns:
Class instance
addPermission
-
$permission
Parameters:
-
$permission
String
afterRemoveExecute
-
$result
-
$query
Keeps Access table consistent on row deletion and update avatar
Parameters:
-
$result
Db_ResultQuery result
-
$query
ArrayThe query which has been excecuted
Returns:
beforeSave
-
$value
Check if one of ofUserId or ofContactLabel is set
Parameters:
-
$value
ArrayThe array of fields
Returns:
beforeSaveExecute
-
$query
-
$modifiedFields
-
$where
Keeps Access table consistent on row insert/update and update avatar
Parameters:
-
$query
Db_QueryThe query being excecuted
-
$modifiedFields
ArrayModified fields
-
$where
Array | 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:
-
$value
String
Returns:
An array of field name and value
getAllPermissions
()
Array
Returns:
hasPermission
-
$permission
Parameters:
-
$permission
String
Returns:
isTemplateOwner
-
$publisherId
-
$type
-
[$user=null]
Check if user "owns" a stream template for a publisher
Parameters:
-
$publisherId
String -
$type
String -
[$user=null]
String | Users_User optional
Returns:
removePermission
-
$permission
Parameters:
-
$permission
String
setUp
()
The setUp() method is called the first time an object of this class is constructed.