Show Menu
Cheatography

Webstrix Functions Cheat Sheet (DRAFT) by

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 config­uration file.
getPro­jec­tPath()
Give the full path of the project from the root.
getAll­Fol­der­And­Sub­Fol­der­($path)
Give all folders and subfolders from the path given.
getAll­Fol­der­And­Pat­hFr­omP­ath­($path)
Give all folder and path of the path given
getAll­Fol­der­Fro­mPa­th(­$path)
Give all folder of the path given

Session function - new session();

creeUn­eSe­ssi­onP­our­Uti­lis­ate­ur(­$id­Uti­lis­ateur, $timeL­ife­Sec­onde)
nettoy­erS­ess­ion()
verifi­erS­ess­ion­Exi­sta­nte­Ave­cCl­efU­niq­ue(­$un­iqu­eKe­ySe­ssion, $ip)
getSes­sio­nId­Uti­lis­ate­ur(­$un­iqu­eKe­ySe­ssion)
getIdU­til­isa­teu­rAc­tuel()
delete­Ses­sio­nSe­rve­urP­our­Uti­lis­ate­ur(­$id­Uti­lis­ateur)
detrui­reS­ess­ion­Bro­wse­rPo­urU­til­isa­teur()
verifi­erS­ess­ion­Exp­ire()
verifi­erS­ess­ion­Exi­sta­nte­Sur­LeB­row­ser()
getSes­sio­nKey()
setVar­iab­leP­our­Uti­lis­ate­urA­vec­Cle­f($­nom­DeL­aVa­riable, $value, $clef)
__set(­$no­mDe­LaV­ari­able, $value)
__get(­$no­mDe­LaV­ari­able)
 

Core Controller function - CoreCo­ntr­oll­er();

charge­rCo­ntr­ole­ur(­$no­mDu­Con­tro­lleur)
ajoute­rVi­ew(­$view = null, $variables = null)

Database function - new db() ;

last_i­nse­rt_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
getLis­tAs­Arr­ay(­$table, $options = null)
getRow­($q­uery)
insert­Arr­ayE­lem­ent­s($­table = null, $listE­lements = null, $listV­alues = null, $options = null)
update­Arr­ayE­lem­ent­s($­table = null, $listE­lements = null, $listV­alues = null, $option = null)
delete­Row­ByI­d($­table, $id)