MessageSource Class Reference

Inheritance diagram for MessageSource:
RedBeanModel BeanModel ObservableComponent

Static Public Member Functions

static getDefaultMetadata ()
static getByCategoryAndSource ($category, $source, $modelClassName=null)
static addNewSource ($category, $source)

Detailed Description

Definition at line 37 of file MessageSource.php.


Member Function Documentation

static getDefaultMetadata (  )  [static]

Returns the default meta data for the class. It must be appended to the meta data from the parent model, if any.

Reimplemented from RedBeanModel.

Definition at line 39 of file MessageSource.php.

static getByCategoryAndSource ( category,
source,
modelClassName = null 
) [static]

Gets a model from the database by category and source message

Parameters:
$category String Category fo the source
$source String The source message
$modelClassName Pass only when getting it at runtime gets the wrong name.
Returns:
A model of the type of the extending model.

Definition at line 72 of file MessageSource.php.

static addNewSource ( category,
source 
) [static]

Adds new message source to the database

Parameters:
String $category Category of the source message
String $source The source message

Definition at line 104 of file MessageSource.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun Sep 24 07:10:27 2017