Add members to a group, creating the group if necessary.
public static createGroup ( string $source, array $members, array $opts = [] ) : object | ||
$source | string | Destination source. |
$members | array | Members of the group. Array of two-element arrays: source and key. |
$opts | array | Additional options:
- attr: (array) Array of attributes to use to create a new group. This should include 'name' at a minimum. - gid: (string) Existing Group ID. - name: (string) Group Name. |
Résultat | object | Object with the following properties:
- errors: (array) List of errors when adding members. - group: (Turba_Object_Group) Group object. - success: (integer) Number of members sucessfully added. |