PHP. Руководство по PHP. 2005
yaz_ccl_parse
yaz_ccl_parse
Описание
bool yaz_ccl_parse (resource id, string query, array &result)This function invokes a CCL parser. It converts a given CCL FIND query to
an RPN query which may be passed to the yaz_search()
function to perform a search.
To define a set of valid CCL fields call yaz_ccl_conf()
prior to this function.
Список параметров
- id
-
The connection resource returned by yaz_connect().
- query
-
The CCL FIND query.
- result
-
If the function was executed successfully, this will be an array
containing the valid RPN query under the key rpn.
Upon failure, three indexes are set in this array to indicate the cause
of failure:
errorcode - the CCL error code (integer)
errorstring - the CCL error string
errorpos - approximate position in query of failure
(integer is character position)
Возвращаемые значения
Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.
Примеры
yaz_ccl_conf
yaz_close