Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version 2022.2

The IP Range Bulk Update Event can be triggered using Custom Logic. The following parameters are Required to execute the Event.

Code Block
titleIP Range Bulk Update
linenumberstrue
/**
* Event: IP Address Bulk Update requested
* Listener Class: Core_Model_IpAddress
* Listener Method: eventBulkUpdate
*/

PCR_Event::attachDb(
    "bulk-update",
    ["Core_Model_IpAddress" => "eventBulkUpdate"]
);
PCR_Event::trigger(
    "bulk-update", 
	[ 		
		"status" => "163",
		"set_protocol" => "ipv4",
		"octet1" => "10",
		"octet2" => "126",
		"octet3" => "112",
		"octet4" => "32",
		"octet5" => null,
		"octet6" => null,
		"octet7" => null,
		"octet8" => null,
		"bulkOctet1" => "10",
		"bulkOctet2" => "126",
		"bulkOctet3" => "112",
		"bulkOctet4" => "36",
		"bulkOctet5" => null,
		"bulkOctet6" => null,
		"bulkOctet7" => null,
		"bulkOctet8" => null,
		"description" => "test",

		"RECID" => "addNew",

		"contact" => "216121", 		//RecID of Contact that initiated the update
		"confirmed" => true,
		"ipAddress" => "10.126.112.32",
		"ip4amount" => 5,

		"eventBroadcastBy" => "216121",
		"eventBroadcastTime" => "Oct 4, 2022, 1=>19 pm",
		"eventBroadcastDayofWeek" => "2",
		"eventBroadcastHourMin" => "1319",  
	]
);