SillySmart 1.0.5 introduces 34 new features & bug fixes.
To browse the full list, check the roadmap :
A Component is similar to an action (without appropriate View) and can be binded on any action.
This allows to relocate in an independent module redundant treatments.
In the SillySmart Back Office, they can be created in the layer Controllers & Actions.
Once created, you can bind this component on any action.
The component, in its logic, is very similar to a Statics Controller, unlike the fact that it runs only on actions on which it is mapped, not the entire application as a Statics.
Coupled with an XSL Generics, it helps to have a completely independent module.
Birth of init() method that is called before each execution of action and following the same logic of inheritance as protected classes.
Action => init() => __ Controller.protected => init() => __ Site.protected => init()
This allows to relocate redundant treatment at N levels of application.
The set of XSL Templates and XSL Generics can be now managed (create / delete) from the SillySmart Back Office.
- All MySQL defaults values are automatically pre-filled on action Add.
- Creating a new generic action "Clone". This action allows to clone 1-N recordsets.
- The listing can now display recordsets from more than two tables. The multi natural-joinis implemented.
Birth of a new function arrayToObject() to cast an array in Std Class (native object implemented by PDO). The interest is to avoid tedious mode of treatments on associative arrays and allow to merge a collection of PDO recordsets with the result of the getParams() function of the current object.
public StdClass arrayToObject($array)
If constructor parameters are not filled, php native function mail() is used instead SMTP transport.
Monitoring of all actions on Sls Bo.
Complete recasting of the class to simplify it and make it consistent with other classes
of datas manipulation (SLS_Session,SLS_HttpRequest, etc..).
Create a new cookie described by $cookieName or retrieves the cookie if already existing.
public void __construct($cookieName)
Set key/value in object (delete key if empty value).
public bool __set($key, $value = “”)
bool true if set, else false
Get value described by a given key.
public mixed __get($key)
Get all keys/values
public array getParams()
public bool save($expire=0, $path = "/", $domain = "")
bool true if saved, else false
Delete a key from the object
public bool flush($key)
bool true if deleted, else false
public bool delete()
bool true if deleted, else fase