Modules | |
enum UTY_FILELIST_SELECT_ | |
Functions | |
uty_filelist ($properties) | |
uty_filecombo ($properties) | |
uty_filelist_request () | |
uty_filelist_response ($request) |
uty_filecombo | ( | $ | properties | ) |
render the html for a filecombo widget (javascript object: utyFileCombo)
properties | array ( 'id' => (MANDATORY), 'path' => (MANDATORY), 'root' => (MANDATORY), 'name' => "", 'error' => null, 'show-select' => UTY_FILELIST_SELECT_NONE, 'show-edit' => false, 'show-remove' => false, 'show-download' => false, 'show-upload' => false, 'dir-only' => false, 'multi-select' => false, 'list-title' => "filecombo" 'list-width' => null, 'list-height' => null, 'disabled' => false ); |
NB: the inner filelist id will be $id_filelist. (remember this if you need to check id on ajax requests!!!)
uty_filelist | ( | $ | properties | ) |
render the filelist widget (javascript object: utyFileList)
properties | array ( 'id' => (MANDATORY), 'path' => (MANDATORY), 'root' => (MANDATORY), 'error' => NULL, 'show-select' => UTY_FILELIST_SELECT_NONE, 'show-edit' => FALSE, 'show-remove' => FALSE, 'show-download' => FALSE, 'show-upload' => FALSE, 'dir-only' => FALSE, 'multi-select' => FALSE, 'onselchange' => NULL, 'onrowsubmit' => NULL, 'width' => NULL, 'height' => NULL, 'sortkey' => 'basename' ); |
uty_filelist_request | ( | ) |
Parse incoming ajax request. MUST BE CALLED BEFORE ANY OUTPUT (handles response headers) if return value != NULL you must handle request and call uty_filelist_response
you can check ["error"] !== false => ["error"] = error message you can put an ["error"] message yourself you MUST call uty_filelist_response anyway, for gentle error handling
uty_filelist_response | ( | $ | request | ) |
respond to ajax request NB: will exit after execution
request | (array) the parsed request |
Copyright © 2010 Attilio Pavone - www.utillyty.eu