Skip to content

Sse_bs

Base controller class for Modules.

Modules should extend this class, and override the methods needed. Emtpy default implementations allow Modules to only override the methods they need.

The methods defined by this class is invoked in order:

  • init()
  • post() -- only for POST requests
  • get()

Modules which emit other serialisations besides HTML (XML,JSON, etc.) should do so within the module init and/or post functions and then invoke killme() to terminate further processing.

Properties

uid

public static $uid
  • This property is static.

ob_hash

public static $ob_hash
  • This property is static.

sse_id

public static $sse_id
  • This property is static.

vnotify

public static $vnotify
  • This property is static.

evdays

public static $evdays
  • This property is static.

limit

public static $limit
  • This property is static.

offset

public static $offset
  • This property is static.

xchans

public static $xchans
  • This property is static.

Methods

init

Initialize request processing.

public init(): mixed

This method is called before any other request processing, and regardless of the request method. The theme is not yet loaded when this method is invoked.


mark_read

public mark_read(mixed $arr): mixed

Parameters:

Parameter Type Description
$arr mixed

bs_network

public bs_network(mixed $notifications): mixed

Parameters:

Parameter Type Description
$notifications mixed

bs_dm

public bs_dm(mixed $notifications): mixed

Parameters:

Parameter Type Description
$notifications mixed

bs_home

public bs_home(mixed $notifications): mixed

Parameters:

Parameter Type Description
$notifications mixed

bs_pubs

public bs_pubs(mixed $notifications): mixed

Parameters:

Parameter Type Description
$notifications mixed

bs_notify

public bs_notify(): mixed

bs_intros

public bs_intros(): mixed

bs_forums

public bs_forums(): mixed

bs_files

public bs_files(): mixed

bs_all_events

public bs_all_events(): mixed

bs_register

public bs_register(): mixed

bs_info_notice

public bs_info_notice(): mixed

Inherited methods

init

Initialize request processing.

public init(): mixed

This method is called before any other request processing, and regardless of the request method. The theme is not yet loaded when this method is invoked.


post

Process POST requests.

public post(): mixed

This method is called if the incoming request is a POST request. It is invoked after the theme has been loaded. This method should not normally render HTML output, as processing will fall through to the GET processing if this method completes without error or stopping processing in other ways.


get

Process GET requests or the body part of POST requests.

public get(): string

This method is called directly for GET requests, and immediately after the post() method for POST requests.

It will return the module content as a HTML string.

Return Value:

HTML content for the module.



Automatically generated on 2025-03-19