static Wodafok\Connection getDB(
[string
$dbName = 'default']
)
|
|
Parameters:
string |
$dbName: |
<p> Nom de la base souhaitez. $dbName sera utilisé comme préfixe suivi de '_' pour la récupération de la configuration. Si $dbName == 'default' aucun préfixe ne sera utilisé. - default : La configuration récupéré sera host, database ect ...
- dbname : La configuration récupéré sera dbname_host, dbname_database ect ...
</p> |
API Tags:
static string quote(
string
$value, [bool
$isId = false], [
$notNull = false], [int
$parameter_type = \PDO::PARAM_STR]
)
|
|
(PHP 5 >= 5.1.0, PECL pdo >= 0.2.1)
Quotes a string for use in a query with NULL compatibilities of null value unset value or '' value.
Return 1 or 0 for bool if it's not an id.
Parameters:
string |
$value: |
<p>
The string to be quoted. </p> |
bool |
$isId: |
[optional] <p> returns null instead of 0 if the value is false </p> |
int |
$parameter_type: |
[optional] <p> Provides a data type hint for drivers that have alternate quoting styles. </p> |
|
$notNull: |
|
API Tags:
Return: | a quoted string that is theoretically safe to pass into an SQL statement. Returns false if the driver does not support quoting in this way. |
Access: | public |
Information Tags:
Wodafok\Connection __construct(
[string
$dbName = 'default']
)
|
|
Parameters:
string |
$dbName: |
<p> Nom de la base souhaitez. $dbName sera utilisé comme préfixe pour la récupération de la configuration. Si $dbName == 'default' aucun préfixe ne sera utilisé. </p> |
API Tags: