Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
logs [12/07/2010 15:22] |
logs [05/06/2013 17:08] |
||
---|---|---|---|
Linea 1: | Linea 1: | ||
- | ====== API Logs ====== | ||
- | home/app/apis/logs/logs_api_controller.php\\ | ||
- | //class LogsApiController extends ApiController//\\ | ||
- | \\ | ||
- | === _setPath === | ||
- | Imposta il percorso della pagina\\ | ||
- | Descrizione: //_setPath()//\\ | ||
- | Parametri: nessun parametro\\ | ||
- | Return: string - il path | ||
- | === log === | ||
- | Registra nel database tutti i dati del soggetto.\\ | ||
- | Descrizione: //log($action, $object, $message, $type, $owner, $path)//\\ | ||
- | Parametri: | ||
- | * $action - string | ||
- | * $object - string | ||
- | * $message - string | ||
- | * $type - string | ||
- | * $owner - string | ||
- | * $path - string | ||
- | Return: void | ||
- | |||
- | === logAction === | ||
- | Registra l'azione.\\ | ||
- | Descrizione: //logAction($action, $object, $message, $path)//\\ | ||
- | Parametri: | ||
- | * $action - string | ||
- | * $object - string | ||
- | * $message - string | ||
- | * $path - string | ||
- | Return: void | ||
- | |||
- | === logAjax === | ||
- | ...\\ | ||
- | Descrizione: //logAjax($type, $action, $message = null, $seconds)//\\ | ||
- | Parametri: | ||
- | * $type - string | ||
- | * $action - string | ||
- | * $message - string | ||
- | * $seconds - int | ||
- | Return: void | ||
- | |||
- | === logError === | ||
- | Registra gli errori.\\ | ||
- | Descrizione: //logError($action, $object, $message, $path)//\\ | ||
- | Parametri: | ||
- | * $action - string | ||
- | * $object - string | ||
- | * $message - string | ||
- | * $path - string | ||
- | Return: void | ||
- | |||
- | === logPermission === | ||
- | Registra i permessi.\\ | ||
- | Descrizione: //logPermission($action, $object, $message, $path)//\\ | ||
- | Parametri: | ||
- | * $action - string | ||
- | * $object - string | ||
- | * $message - string | ||
- | * $path - string | ||
- | Return: void | ||
- | |||
- | === write === | ||
- | Scrive tutti i log nel database con una sola query.\\ | ||
- | Descrizione: //write()//\\ | ||
- | Parametri: nessun parametro\\ | ||
- | Return: void |