Skip to content
Mo McRoberts edited this page Aug 7, 2011 · 2 revisions

Construct an instance of [[Model]].

Synopsis

uses('model');

public function [[Model]]::__construct(array [in] $args)

Description

If $args['db'] is a string of nonzero length, [[Model::$dbIri]] will be set to its value, and [[Model::$db]] will be assigned the result of passing it to [[DBCore::connect]]() in order to establish a database connection.

Parameters

Name Direction Type Description
$args in array Initialisation parameters.

Clone this wiki locally