LEPTON CMS 7.3.0
feel free to keep it strictly simple...
|
Go to the source code of this file.
Functions | |
cryptString (string $sSource="") | |
decryptString (string $sSource) | |
setOpenSSLMethod (string $sMethodName) | |
setOpenSSLIv (string $sNewIV) | |
secure_get_one (string $SQL) | |
secure_execute_query (string $aQuery="", bool $bFetch=false, array &$aStorage=array(), bool $bFetchAll=true, array $aListOfFields=array()) | |
secure_build_and_execute (string $type, string $table_name, array $table_values=[], string $condition="", array $aListOfFields=[], bool $display_query=false) | |
Variables | |
trait | LEPTON_secure_database |
|
protected |
To encrypt any string.
string | $sSource | Any string |
Definition at line 47 of file lepton_secure_database.php.
|
protected |
To decrypt any string.
string | $sSource | Any encrypted string. |
Definition at line 67 of file lepton_secure_database.php.
secure_build_and_execute | ( | string | $type, |
string | $table_name, | ||
array | $table_values = [], | ||
string | $condition = "", | ||
array | $aListOfFields = [], | ||
bool | $display_query = false ) |
Public function to build and execute a mySQL query direct. Use this function/method for update and insert values only. As for a simple select you can use "prepare_and_execute" above.
string | $type | A "job"-type: this time only "update" and "insert" are supported. |
string | $table_name | A valid tablename (incl. table-prefix). |
array | $table_values | An array within the table-field-names and values. Pass by reference! |
string | $condition | An optional condition for "update" - this time a simple string. |
array | $aListOfFields | A linear array with the fieldnames to crypt. |
bool | $display_query | An optional value to display query as a string for development (only) |
Definition at line 220 of file lepton_secure_database.php.
secure_execute_query | ( | string | $aQuery = "", |
bool | $bFetch = false, | ||
array & | $aStorage = array(), | ||
bool | $bFetchAll = true, | ||
array | $aListOfFields = array() ) |
Definition at line 153 of file lepton_secure_database.php.
secure_get_one | ( | string | $SQL | ) |
[2] New class methods Execute a SQL query and return the first row of the result array
string | $SQL | Any SQL-Query or statement |
Definition at line 121 of file lepton_secure_database.php.
setOpenSSLIv | ( | string | $sNewIV | ) |
Set the iv
string | $sNewIV | A valid iv (16 bytes!) |
Definition at line 103 of file lepton_secure_database.php.
setOpenSSLMethod | ( | string | $sMethodName | ) |
[1] Interface functions Set the method
string | $sMethodName | A valid Method. |
Definition at line 93 of file lepton_secure_database.php.
trait LEPTON_secure_database |
This file is part of LEPTON Core, released under the GNU GPL Please see LICENSE and COPYING files in your package for details, specially for terms and warranties.
NOTICE:LEPTON CMS Package has several different licenses. Please see the individual license in the header of each single file or info.php of modules and templates.
Definition at line 24 of file lepton_secure_database.php.