public class Symphony.Message

admin.js

The message object handles system messages that should be displayed on the fly. It offers a post and a clear function to set and remove messages. Absolute dates and times will be replaced by a representation relative to the user's system time.

Methods

public static
admin.js
static Message()

The message object handles system messages that should be displayed on the fly. It offers a post and a clear function to set and remove messages. Absolute dates and times will be replaced by a representation relative to the user's system time.

public static
static clear(String $type)

Clear message by type

Parameters
  • $type StringMessage type

public static
static distance(Date $from, Date $to)

Calculate relative time.

Parameters
  • $from DateStarting date

  • $to DateCurrent date

public static
static fade( $newclass, $delay)

Fade message highlight color to grey

Parameters
  • $newclass

  • $delay

public static
static post(String $message, String $type)

Post system message

Parameters
  • $message StringMessage to be shown

  • $type StringMessage type to be used as class name

public static
static timer()

Convert absolute message time to relative time and update continuously

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details