Function __global->notifications_ui_advanced

Definitions

sources/notifications2.php

  • Put out a user interface for managing notifications for a notification-category supporting content type. Also toggle notifications if an ID is passed.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$notification_code ID_TEXT No No required parameter N/A N/A The notification code to work with
$enable_message ?Tempcode No No Null N/A N/A Special message to output if we have toggled to enable (null: use standard)
$disable_message ?Tempcode No No Null N/A N/A Special message to output if we have toggled to disable (null: use standard)

Returns

  • UI
  • Type: Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Put out a user interface for managing notifications for a notification-category supporting content type. Also toggle notifications if an ID is passed.
 *
 * @param  ID_TEXT $notification_code The notification code to work with
 * @param  ?Tempcode $enable_message Special message to output if we have toggled to enable (null: use standard)
 * @param  ?Tempcode $disable_message Special message to output if we have toggled to disable (null: use standard)
 * @return Tempcode UI
 */

function notifications_ui_advanced(string $notification_code, ?object $enable_message = null, ?object $disable_message = null) : object