newInstanceArgs($args); } // Database object protected $db = 'default'; /** * Loads the database instance, if the database is not already loaded. * * @return void */ public function __construct() { if ( ! is_object($this->db)) { // Load the default database $this->db = Database::instance($this->db); } } } // End Model