phpDocumentor Wodafok
[ class tree: Wodafok ] [ index: Wodafok ] [ all elements ]

Class: Factory

Source Location: /Classes/Factory.php

Class Factory

Class Overview

Located in /Classes/Factory.php [line 33]



		
				Author(s):
		
		
		
Information Tags:
Version:  0.1
Copyright:  2011 Wodafok
License:  WoDaFoK

Properties

Methods

[ Top ]
Property Summary
static array   $connections  
static mixed   $self  

[ Top ]
Method Summary
static Wodafok\Connection   getDB()  
static string   quote()   (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.
Wodafok\Connection   __construct()  

[ Top ]
Properties
static array   $connections = array() [line 39]
API Tags:
Access:  protected


[ Top ]
static mixed   $self [line 40]
API Tags:
Access:  protected


[ Top ]
Methods
static method getDB  [line 57]

  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:
Access:  public


[ Top ]
static method quote  [line 101]

  static string quote( string $value, [bool $isId = false], [ $notNull = false], [int $parameter_type = \PDO::PARAM_STR]  )

(PHP 5 &gt;= 5.1.0, PECL pdo &gt;= 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:
Link:  http://php.net/manual/en/pdo.quote.php

[ Top ]
Constructor __construct  [line 74]

  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:
Access:  public


[ Top ]

Documentation generated on Mon, 13 Aug 2012 23:01:08 +0200 by phpDocumentor 1.4.4