The following code sample shows you how to create a new collaboration notification rule for a specific user. The known variables are:
$existing = eZCollaborationNotificationRule::fetchItemTypeList( $collaborationIdentifier, array( $userID ) ); if ( count( $existing ) == 0 ) { $rule = eZCollaborationNotificationRule::create( $collaborationIdentifier, $userID ); $rule->store( ); }
Article provided by eZpedia
All text is available under the terms of the GNU Free Documentation License
Powered by eZ Publish 6.0.2stable
Hosted by USA eZ Publish Community Partner : Brookins Consulting