![]() |
gino CMS
2.5.0
gino è un CMS scritto in PHP che offre tutti gli strumenti necessari per poter creare un sito web e gestire i contenuti al suo interno in maniera semplice ed efficace, svincolando l'amministratore da conoscenze tecniche di programmazione
|
Libreria di connessione ai database MySQL. More...


Public Member Functions | |
| __construct ($params) | |
| Costruttore. More... | |
| getInfoQuery () | |
| openConnection () | |
| closeConnection () | |
| Chiude le connessioni non persistenti a un server MySQL. More... | |
| begin () | |
| Per tabelle innodb. More... | |
| rollback () | |
| Per tabelle innodb. More... | |
| commit () | |
| Per tabelle innodb. More... | |
| multiActionQuery ($file_content) | |
| freeresult ($res=null) | |
| getLastId ($table) | |
| Il valore della funzione SQL LAST_INSERT_ID() di MySQL contiene sempre il più recente valore AUTO_INCREMENT generato e non è azzerato dalle query. More... | |
| autoIncValue ($table) | |
| Ottiene il valore del campo AUTO_INCREMENT. More... | |
| getFieldFromId ($table, $field, $field_id, $id, $options=array()) | |
| tableexists ($table) | |
| fieldInformations ($table) | |
| conformFieldType ($type) | |
| limit ($range, $offset) | |
| distinct ($fields, $options=array()) | |
| concat ($sequence) | |
| dumpDatabase ($file) | |
| changeFieldType ($data_type, $value) | |
| getNumRecords ($table, $where=null, $field='id', $options=array()) | |
| query ($fields, $tables, $where=null, $options=array()) | |
| execCustomQuery ($query, $options=array()) | |
| select ($fields, $tables, $where=null, $options=array()) | |
| insert ($fields, $table, $debug=false) | |
| update ($fields, $table, $where, $debug=false) | |
| delete ($table, $where, $debug=false) | |
| drop ($table) | |
| columnHasValue ($table, $field, $value, $options=array()) | |
| join ($table, $condition, $option) | |
| union ($queries, $options=array()) | |
| restore ($table, $filename, $options=array()) | |
| dump ($table, $filename, $options=array()) | |
| escapeString ($string) | |
Data Fields | |
| $_db_name | |
| $_db_user | |
| $_db_password | |
| $_db_charset | |
| $_dbconn | |
Private Member Functions | |
| setParamsCache () | |
| Parametri inerenti la cache delle query presenti nelle Impostazioni di sistema. More... | |
| setsql ($sql_query) | |
| Imposta la query come proprietà More... | |
| setNumberRows ($numberresults) | |
| setconnection ($connection) | |
| queryResults ($query, $options=array()) | |
| Esegue la query e ne calcola i tempi di esecuzione. More... | |
| setUtf8 () | |
Private Attributes | |
| $_db_host | |
| $_sql | |
| $_qry | |
| $_numberrows | |
| $_connection | |
| $_rows | |
| $_affected | |
| $_lastid | |
| $_dbresults = array() | |
| $_show_stats | |
| $_info_queries | |
| $_cnt | |
| $_time_queries | |
| $_query_cache | |
| $_query_cache_time | |
| $_cache | |
Libreria di connessione ai database MySQL.
La proprietà self::$_query_cache indica se è stata abilita la cache delle query.
Le query che vengono salvate in cache sono quelle che passano dal metodo select() ed execCustomQuery(), e non riguardano quindi le query di struttura, quali quelle presenti nei metodi:
Qualora non si desideri caricare in cache una determinata query è sufficiente passare l'opzione cache=false ai metodi select() e execCustomQuery().
La cache delle query viene svuotata ogni volta che viene effettuata una istruzione di tipo action.
La proprietà self::$_show_stats attiva la raccolta di informazioni sulle prestazioni delle chiamate al database.
Le query di tipo select alimentano i contatori self::$_cnt e self::$_time_queries.
| __construct | ( | $params | ) |
Costruttore.
| array | $params | parametri di connessione al database
|
Implements DbManager.
| autoIncValue | ( | $table | ) |
| begin | ( | ) |
| changeFieldType | ( | $data_type, | |
| $value | |||
| ) |
Implements DbManager.
| closeConnection | ( | ) |
Chiude le connessioni non persistenti a un server MySQL.
Implements DbManager.
| columnHasValue | ( | $table, | |
| $field, | |||
| $value, | |||
$options = array() |
|||
| ) |
Implements DbManager.
| commit | ( | ) |
| concat | ( | $sequence | ) |
Implements DbManager.
| conformFieldType | ( | $type | ) |
Implements DbManager.
| delete | ( | $table, | |
| $where, | |||
$debug = false |
|||
| ) |
Implements DbManager.
| distinct | ( | $fields, | |
$options = array() |
|||
| ) |
Implements DbManager.
| drop | ( | $table | ) |
Implements DbManager.
| dump | ( | $table, | |
| $filename, | |||
$options = array() |
|||
| ) |
Per poter effettuare questa operazione occorre:
Implements DbManager.
| dumpDatabase | ( | $file | ) |
Implements DbManager.
| escapeString | ( | $string | ) |
Implements DbManager.
| execCustomQuery | ( | $query, | |
$options = array() |
|||
| ) |
Implements DbManager.
| fieldInformations | ( | $table | ) |
Implements DbManager.
| freeresult | ( | $res = null | ) |
Implements DbManager.
| getFieldFromId | ( | $table, | |
| $field, | |||
| $field_id, | |||
| $id, | |||
$options = array() |
|||
| ) |
Implements DbManager.
| getInfoQuery | ( | ) |
Implements DbManager.
| getLastId | ( | $table | ) |
Il valore della funzione SQL LAST_INSERT_ID() di MySQL contiene sempre il più recente valore AUTO_INCREMENT generato e non è azzerato dalle query.
Implements DbManager.
| getNumRecords | ( | $table, | |
$where = null, |
|||
$field = 'id', |
|||
$options = array() |
|||
| ) |
Implements DbManager.
| insert | ( | $fields, | |
| $table, | |||
$debug = false |
|||
| ) |
Implements DbManager.
| join | ( | $table, | |
| $condition, | |||
| $option | |||
| ) |
Implements DbManager.
| limit | ( | $range, | |
| $offset | |||
| ) |
Implements DbManager.
| multiActionQuery | ( | $file_content | ) |
Implements DbManager.
| openConnection | ( | ) |
Implements DbManager.
| query | ( | $fields, | |
| $tables, | |||
$where = null, |
|||
$options = array() |
|||
| ) |
Implements DbManager.
|
private |
Esegue la query e ne calcola i tempi di esecuzione.
| string | $query | query da eseguire |
| array | $options | array associativo di opzioni
|
| restore | ( | $table, | |
| $filename, | |||
$options = array() |
|||
| ) |
Implements DbManager.
| rollback | ( | ) |
| select | ( | $fields, | |
| $tables, | |||
$where = null, |
|||
$options = array() |
|||
| ) |
Implements DbManager.
|
private |
|
private |
|
private |
Parametri inerenti la cache delle query presenti nelle Impostazioni di sistema.
|
private |
Imposta la query come proprietà
| string | $sql_query | query |
|
private |
| tableexists | ( | $table | ) |
Implements DbManager.
| union | ( | $queries, | |
$options = array() |
|||
| ) |
Implements DbManager.
| update | ( | $fields, | |
| $table, | |||
| $where, | |||
$debug = false |
|||
| ) |
Implements DbManager.
|
private |
|
private |
|
private |
|
private |
| $_db_charset |
|
private |
| $_db_name |
| $_db_password |
| $_db_user |
| $_dbconn |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |