Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : YAZ Functions : yaz_ccl_parse

yaz_ccl_parse

Invoke CCL Parser (PHP 4 >= 4.0.5, PECL yaz:0.9-1.0.9)
bool yaz_ccl_parse ( resource id, string query, array &result )

Example 2674. CCL Parsing

We will try to search using CCL. In the example below, $ccl is a CCL query.

<?php

yaz_ccl_conf
($id, $fields);  // see example for yaz_ccl_conf
if (!yaz_ccl_parse($id, $ccl, &$cclresult)) {
   echo
'Error: ' . $cclresult["errorstring"];
} else {
   
$rpn = $cclresult["rpn"];
   
yaz_search($id, "rpn", $rpn);
}
?>

Change Language


Follow Navioo On Twitter
yaz_addinfo
yaz_ccl_conf
yaz_ccl_parse
yaz_close
yaz_connect
yaz_database
yaz_element
yaz_errno
yaz_error
yaz_es_result
yaz_es
yaz_get_option
yaz_hits
yaz_itemorder
yaz_present
yaz_range
yaz_record
yaz_scan_result
yaz_scan
yaz_schema
yaz_search
yaz_set_option
yaz_sort
yaz_syntax
yaz_wait
eXTReMe Tracker