Public Member Functions | |
| __construct () | |
| __destruct () | |
| run ($strSql, $arrParams=array()) | |
Static Public Member Functions | |
| static | getInstance () |
Protected Attributes | |
| $objConnection | |
Static Protected Attributes | |
| static | $objInstance |
Definition at line 4 of file semana.php.
| __construct | ( | ) |
Definition at line 31 of file semana.php.
00032 { 00033 $this->objConnection = new PDO( 00034 'mysql:host=127.0.0.1;dbname=semana-de-extensao;charset=UTF-8', 00035 'root', 00036 '123456' 00037 ); 00038 $this->objConnection->beginTransaction(); 00039 }
| __destruct | ( | ) |
| static getInstance | ( | ) | [static] |
Definition at line 22 of file semana.php.
Referenced by DrawFlow::getLines(), and DrawFlow::getStates().
00023 { 00024 if( self::$objInstance == null ) 00025 { 00026 self::$objInstance = new DatabaseConnection(); 00027 } 00028 return self::$objInstance; 00029 }
| run | ( | $ | strSql, | |
| $ | arrParams = array() | |||
| ) |
| string | $strSql |
Definition at line 51 of file semana.php.
00052 { 00053 $objPrepare = $this->objConnection->prepare( $strSql ); 00054 $objPrepare->execute( $arrParams ); 00055 $arrResult = $objPrepare->fetchAll(); 00056 return $arrResult; 00057 }
$objConnection [protected] |
$objInstance [static, protected] |
1.5.9