Class jDb

Description

factory for database connector and other db utilities

Located in /db/jDb.class.php (line 111)


	
			
Method Summary
static void floatToStr ( $value)
static jDbConnection getConnection ([string $name = ''])
static jDbWidget getDbWidget ([string $name = null])
boolean testProfile (array $profile)
Methods
static floatToStr (line 176)

perform a convertion float to str. It takes care about the decimal separator which should be a '.' for SQL. Because when doing a native convertion float->str, PHP uses the local decimal separator, and so, we don't want that.

  • since: 1.1.11
  • access: public
static void floatToStr ( $value)
  • $value
static getConnection (line 120)

return a database connector. It uses a temporay pool of connection to reuse currently opened connections.

  • return: the connector
  • access: public
static jDbConnection getConnection ([string $name = ''])
  • string $name: profile name to use. if empty, use the default one
static getDbWidget (line 129)

create a new jDbWidget

  • access: public
static jDbWidget getDbWidget ([string $name = null])
  • string $name: profile name to use. if empty, use the default one
static _createConnector (line 155)

create a connector. internal use (callback method for jProfiles)

  • return: database connector
  • access: public
static jDbConnection|jDbPDOConnection _createConnector (array $profile)
  • array $profile: profile properties
testProfile (line 139)

call it to test a profile (during an install for example)

  • return: true if properties are ok
  • access: public
boolean testProfile (array $profile)
  • array $profile: profile properties

Documentation generated on Wed, 04 Jan 2017 22:53:40 +0100 by phpDocumentor 1.4.3