Documentation

DbModel
in package

Tags
addtogroup

singletons Group of Singletons

@{

Table of Contents

Constants

DB_HOST  = '192.168.247.76'

Properties

$_cache_query_result  : mixed
$_dbconn_read  : mixed
$_dbconn_write  : mixed
$_dbconnection_read  : mixed
$_dbconnection_write  : mixed
$_instance  : Singleton

Methods

_add_to_cache_query()  : mixed
_bind_params()  : mixed
_build_array_for_prepare()  : mixed
_clear_cache_query()  : mixed
_connect_for_read()  : Singleton
Méthode qui crée l'unique instance de la classe si elle n'existe pas encore puis la retourne.
_connect_for_write()  : mixed
_disconnect_for_read()  : mixed
_disconnect_for_write()  : mixed
_execute_query_with_params()  : mixed
_get_cache_query()  : mixed
_is_query_cached()  : mixed
_normalize_int()  : mixed
_query_by_id()  : mixed
_query_read_onerow_with_params()  : mixed
_query_read_with_params()  : mixed
_query_write_with_params()  : mixed
getInstance()  : Singleton
Méthode qui crée l'unique instance de la classe si elle n'existe pas encore puis la retourne.
__construct()  : void
Class constructor

Constants

DB_HOST

public mixed DB_HOST = '192.168.247.76'

Properties

$_cache_query_result

public static mixed $_cache_query_result = array('default' => array())

$_dbconn_read

private static mixed $_dbconn_read = \NULL

$_dbconn_write

private static mixed $_dbconn_write = \NULL

$_dbconnection_read

private static mixed $_dbconnection_read = array('db' => 'pgsql:host=' . self::DB_HOST . ';port=5433;dbname=magnaregula;', 'user' => 'magnaregula', 'password' => 'qnty2573')

$_dbconnection_write

private static mixed $_dbconnection_write = array('db' => 'pgsql:host=' . self::DB_HOST . ';port=5433;dbname=magnaregula;', 'user' => 'magnaregula', 'password' => 'qnty2573')

$_instance

private static Singleton $_instance = \NULL
Tags
access

private

static

Methods

_add_to_cache_query()

public static _add_to_cache_query(mixed $context, mixed $key, mixed $rows) : mixed
Parameters
$context : mixed
$key : mixed
$rows : mixed

_bind_params()

public static _bind_params(mixed &$pdostatement, mixed &$params, mixed $sql) : mixed
Parameters
$pdostatement : mixed
$params : mixed
$sql : mixed

_build_array_for_prepare()

public static _build_array_for_prepare(mixed $array, mixed $sql) : mixed
Parameters
$array : mixed
$sql : mixed

_clear_cache_query()

public static _clear_cache_query([mixed $context = 'default' ]) : mixed
Parameters
$context : mixed = 'default'

_connect_for_read()

Méthode qui crée l'unique instance de la classe si elle n'existe pas encore puis la retourne.

public static _connect_for_read() : Singleton
Return values
Singleton

_connect_for_write()

public static _connect_for_write() : mixed

_disconnect_for_read()

public static _disconnect_for_read() : mixed

_disconnect_for_write()

public static _disconnect_for_write() : mixed

_execute_query_with_params()

public static _execute_query_with_params(mixed $dbh, mixed $query, mixed $fields[, mixed $multirows = TRUE ][, mixed $fetchmode = PDO::FETCH_ASSOC ]) : mixed
Parameters
$dbh : mixed
$query : mixed
$fields : mixed
$multirows : mixed = TRUE
$fetchmode : mixed = PDO::FETCH_ASSOC

_get_cache_query()

public static _get_cache_query(mixed $context, mixed $key) : mixed
Parameters
$context : mixed
$key : mixed

_is_query_cached()

public static _is_query_cached(mixed $key[, mixed $context = 'default' ]) : mixed
Parameters
$key : mixed
$context : mixed = 'default'

_normalize_int()

public static _normalize_int(mixed $value) : mixed
Parameters
$value : mixed

_query_by_id()

public static _query_by_id(mixed $query, mixed $id) : mixed
Parameters
$query : mixed
$id : mixed

_query_read_onerow_with_params()

public static _query_read_onerow_with_params(mixed $query, mixed $fields[, mixed $fetchmode = PDO::FETCH_ASSOC ]) : mixed
Parameters
$query : mixed
$fields : mixed
$fetchmode : mixed = PDO::FETCH_ASSOC

_query_read_with_params()

public static _query_read_with_params(mixed $query, mixed $fields[, mixed $fetchmode = PDO::FETCH_ASSOC ]) : mixed
Parameters
$query : mixed
$fields : mixed
$fetchmode : mixed = PDO::FETCH_ASSOC

_query_write_with_params()

public static _query_write_with_params(mixed $query, mixed $fields[, mixed $fetchmode = PDO::FETCH_ASSOC ]) : mixed
Parameters
$query : mixed
$fields : mixed
$fetchmode : mixed = PDO::FETCH_ASSOC

getInstance()

Méthode qui crée l'unique instance de la classe si elle n'existe pas encore puis la retourne.

public static getInstance() : Singleton
Return values
Singleton

__construct()

Class constructor

private __construct() : void

        
On this page

Search results