EmmaPHP: copyGroupToGroup()

Copy all the users from one group to another.  You must specify the status ID(s) of users you wish to include in the copy.

Arguments: 

  • int $source_group - The group ID of the group from which you want to copy
  • int $target_group - The group ID of the group you want to copy the members into
  • string or array of string $member_status_id- The status ID(s) of the members you want to include in the copy.  Valid values are:
    • 'a' - Active
    • 'o' - Opt out
    • 'e' - Error

Use:


require_once('../../MyEmmaPHP.php');

try {

	$me = new MyEmmaPHP();
  
	$from_group = 17764;
	$to_group = 10596;
	$member_status_id = 'a';
	
	$retval = $me->copyGroupToGroup($from_group, $to_group, $member_status_id); 
	print_r($retval);
	
	    
} catch ( Exception $e ) {
    echo $e->getMessage() . "\n\n";
}



Wrapper for: copy_group_to_group

Keep in Touch

Contact Us

Buzz

Loading...

People talking about '@synergycode':