Function Module_admin_site_messaging->add_or_edit

Definitions

adminzone/pages/modules/admin_site_messaging.php

  • The UI to add or edit a site message.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$id ?AUTO_LINK No No Null N/A N/A The ID of the message we are editing (null: adding a new one)

Returns

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

Preview

Code (PHP)

/**
 * The UI to add or edit a site message.
 *
 * @param  ?AUTO_LINK $id The ID of the message we are editing (null: adding a new one)
 * @return Tempcode The UI
 */

public function add_or_edit(?int $id = null) : object