LEPTON CMS 7.2.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=[], string $key="") | |
Variables | |
trait | LEPTON_secure_database |
|
protected |
To encrypt any string.
string | $sSource | Any string |
Definition at line 43 of file lepton_secure_database.php.
|
protected |
To decrypt any string.
string | $sSource | Any encrypted string. |
Definition at line 64 of file lepton_secure_database.php.
secure_build_and_execute | ( | string | $type, |
string | $table_name, | ||
array | $table_values = [], | ||
string | $condition = "", | ||
array | $aListOfFields = [], | ||
string | $key = "" ) |
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. |
string | $key | An optional "no update" key field to be excluded on update while "insert_on_duplicate_key_update" - a simple string containing 1 key field. |
Definition at line 217 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 150 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 118 of file lepton_secure_database.php.
setOpenSSLIv | ( | string | $sNewIV | ) |
Set the iv
string | $sNewIV | A valid iv (16 bytes!) |
Definition at line 100 of file lepton_secure_database.php.
setOpenSSLMethod | ( | string | $sMethodName | ) |
[1] Interface functions Set the method
string | $sMethodName | A valid Method. |
Definition at line 90 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.