plugin = $plugin; } /** * Alert recipients about the new record * * @param int $record_id Record ID. * @param array $recordarr Record details. * @param array $options Alert options. */ abstract public function alert( $record_id, $recordarr, $options ); /** * Display settings form for configuration of individual alerts * * @param Alert $alert Alert currently being worked on. */ public function display_fields( $alert ) { // Implementation optional, but recommended. } /** * Process settings form for configuration of individual alerts * * @param Alert $alert Alert currently being worked on. */ public function save_fields( $alert ) { // Implementation optional, but recommended. } /** * Allow connectors to determine if their dependencies are satisfied or not * * @return bool */ public function is_dependency_satisfied() { // Implementation optional, but recommended. return true; } }