Cheatography
https://cheatography.com
Web Strix chear Sheet for the framework
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Framework function
getURL() |
Give the URL of the website, this url come from the configuration file. |
getProjectPath() |
Give the full path of the project from the root. |
getAllFolderAndSubFolder($path) |
Give all folders and subfolders from the path given. |
getAllFolderAndPathFromPath($path) |
Give all folder and path of the path given |
getAllFolderFromPath($path) |
Give all folder of the path given |
Session function - new session();
creeUneSessionPourUtilisateur($idUtilisateur, $timeLifeSeconde) |
nettoyerSession() |
verifierSessionExistanteAvecClefUnique($uniqueKeySession, $ip) |
getSessionIdUtilisateur($uniqueKeySession) |
getIdUtilisateurActuel() |
deleteSessionServeurPourUtilisateur($idUtilisateur) |
detruireSessionBrowserPourUtilisateur() |
verifierSessionExpire() |
verifierSessionExistanteSurLeBrowser() |
getSessionKey() |
setVariablePourUtilisateurAvecClef($nomDeLaVariable, $value, $clef) |
__set($nomDeLaVariable, $value) |
__get($nomDeLaVariable) |
|
|
Core Controller function - CoreController();
chargerControleur($nomDuControlleur) |
ajouterView($view = null, $variables = null) |
Database function - new db() ;
last_insert_id() |
get the latest id insert in the DB |
query($query) |
Inject a query inside mysql, return false on fail, a list of elements or true when well done |
getListAsArray($table, $options = null) |
getRow($query) |
insertArrayElements($table = null, $listElements = null, $listValues = null, $options = null) |
updateArrayElements($table = null, $listElements = null, $listValues = null, $option = null) |
deleteRowById($table, $id) |
|