Get an array for an object’s list entries.
array
i5_objetcs_list_read (resource
list)
Parameters
list |
Resource returned by i5_objects_list
|
Return
Array with the object element if OK; false if failed.
Error returned
I5_ERR_MEMALLOC |
3 |
Not enough memory |
I5_ERR_PHP_HDLDFT |
256 |
No default connection found. |
I5_ERR_PHP_OPTIONSTYPE |
259 |
The type of " I5_OPTIONS_ALIAS" option must be x and not x |
I5_ERR_PHP_OPTIONSNUMBER |
260 |
Option number -1 is unknown. |
I5_ERR_PHP_TYPEPARAM |
262 |
Type of element x in parameter -1 must be y. Type z was provided. |
Example
$HdlList = i5_objects_list('EASYCOM', 'S*', '*FILE');
if (is_bool($HdlList)) trigger_error('i5_objects_list error : '.i5_errormsg(), E_USER_ERROR);
$count = 0;
while($list = i5_objects_list_read($HdlList)){
print_r($list);echo '<BR>';
$count ++;
if ($count > 3) break;
}
$ret = i5_objects_list_close($HdlList);
if (!$ret) trigger_error('i5_object_list_close error : '.i5_errormsg(), E_USER_ERROR);