Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
core [19/05/2010 17:25] |
core [15/06/2010 16:57] |
||
---|---|---|---|
Linea 3: | Linea 3: | ||
//class ApiController extends Controller//\\ | //class ApiController extends Controller//\\ | ||
\\ | \\ | ||
- | * loadApi - Carica l'api. | + | === eventHandler === |
- | //Descrizione//: | + | Il sistema invoca questa funzione per creare con evento.\\ |
- | reference loadApi(string $apiName) | + | Descrizione: //eventHandler(&$class, $handler, $params = array(), &$prev = array())//\\ |
+ | Parametri: \\ | ||
+ | Return: void | ||
- | * notify - Permette di notificare ai controller un evento. | + | === formatDate === |
- | //Descrizione//: | + | Formatta la data nel formato sql.\\ |
- | array notify($event, $params = array(), $make_plain_array = false) | + | Descrizione: //formatDate($sql_format, $format = 'date')//\\ |
+ | Parametri: \\ | ||
+ | Return: void | ||
- | * eventHandler - Il sistema invoca questa funzione per creare con evento. | + | === loadApi === |
- | //Descrizione//: | + | Carica l'api.\\ |
- | void eventHandler(&$class, $handler, $params = array(), &$prev = array()) | + | Descrizione: //loadApi(string $apiName)//\\ |
+ | Parametri: \\ | ||
+ | Return: reference | ||
- | * render - 'return false' poichè le API non posso renderizzare. | + | === notify === |
- | //Descrizione//: | + | Permette di notificare ai controller un evento.\\ |
- | boolean render($action = null, $layout = null, $file = null) | + | Descrizione: //notify($event, $params = array(), $make_plain_array = false)//\\ |
+ | Parametri: \\ | ||
+ | Return: array | ||
- | * s - Traduce la stringa. | + | === render === |
- | //Descrizione//: | + | 'return false' poichè le API non posso renderizzare.\\ |
- | s($string, $force_encode = true) | + | Descrizione: //render($action = null, $layout = null, $file = null)//\\ |
+ | Parametri: \\ | ||
+ | Return: boolean | ||
- | * formatDate - Formatta la data nel formato sql. | + | === s=== |
- | //Descrizione//: | + | Traduce la stringa.\\ |
- | void formatDate($sql_format, $format = 'date') | + | Descrizione: //s($string, $force_encode = true)//\\ |
+ | Parametri: \\ | ||
+ | Return: string |