OpenBroadcaster Documentation
classes / obfmodel.php

OBFModel

Class

Model class. Defines basic OB model functionality.

public  __call ( name, args )

Shortcut to use $this->ModelName('method', arg1, arg2, ...).

Parameters
name
args
Returns return_value
public  __construct ( )

Create an instance of OBFModel, make database (db) and base framwork (ob) available.

public  __invoke ( )

Invoke is used for all method calls in order to handle callbacks appropriately.

public  error ( error=null )

Get or set error. If error is set to NULL (the default value), this will return the error . If error is set to FALSE, it'll reset the error.

Parameters
error
Returns error