Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

ReadPermissionSubscriptionObserver Class Reference

Public Member Functions

 init ()
 attachEventsByModelClassName ($modelClassName)
 readPermissionSubscriptionOnAfterOwnerChangeAfterSave (CEvent $event)
 readPermissionSubscriptionOnAfterSave (CEvent $event)
 readPermissionSubscriptionOnAfterDelete (CEvent $event)

Data Fields

 $enabled = true

Detailed Description

Helps manage observation events on various classes. Inspects modules for their primary model and detects if hasReadPermissionsSubscriptionOptimization is present. If it is then it will attempt to add queue jobs on various events to support ReadPermissionsSubscriptionOptimization

Definition at line 43 of file ReadPermissionSubscriptionObserver.php.


Member Function Documentation

init (  ) 

Initialize the observer if enabled. Attaches events to model classes as needed.

Definition at line 54 of file ReadPermissionSubscriptionObserver.php.

attachEventsByModelClassName ( modelClassName  ) 

Given a model class name attach readPermissionsSubscriptionOptimization events to that class. Every model will then invoke the readPermissionsSubscriptionOptimization event.

Parameters:
string $modelClassName

Definition at line 86 of file ReadPermissionSubscriptionObserver.php.

readPermissionSubscriptionOnAfterOwnerChangeAfterSave ( CEvent $  event  ) 

Given a event, perform the onOwnerChange logic for a model ($event->sender)

Parameters:
CEvent $event
Returns:
bool

Definition at line 102 of file ReadPermissionSubscriptionObserver.php.

readPermissionSubscriptionOnAfterSave ( CEvent $  event  ) 
Parameters:
CEvent $event
Returns:
bool

Definition at line 129 of file ReadPermissionSubscriptionObserver.php.

readPermissionSubscriptionOnAfterDelete ( CEvent $  event  ) 
Parameters:
CEvent $event
Returns:
bool

Definition at line 162 of file ReadPermissionSubscriptionObserver.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun Mar 24 07:10:57 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8