/** * Generate a JSON message with an event that can be sent * to the grid after a data element was deleted. * @param $elementId integer * @return string A rendered JSON message. */ function elementDeleted($elementId) { $json = new JSON('true'); $json->setEvent('elementDeleted', array($this->getId(), (string) $elementId)); return $json->getString(); }