Marmot Manual

MU_DataSource::MU_DataSource

(Version unspecified)

MU_DataSource::MU_DataSource — Connect to a datasource

Description

mixed MU_DataSourcestring ds_name [, ([string connect_type='persistent'])

Parameters

  • name - the name of

  • attributes - an array of attributes passed to the section.

    • none

Return value

Creating a new DataSource actually returns the appropriate class for the specific DBMS, LDAP, or other appropriate source.

Notes

DataSources are managed on a per-installation basis. Please see a non-existent chapter for more information.

Examples

Example 58. Connecting to a datasource

<?php $ds = new MU_DataSource('student_financial_data'); ?>

See also

MU_DBH, MU_DBH_OCI8, MU_DBH_MySQL, MU_DBH_PostgreSQL, MU_DBH_MSSQL, MU_LDAP