From 749aa5cc41491e09355ebd10d77078ac60381a57 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Sun, 23 Dec 2007 22:51:03 +0000 Subject: [PATCH] MFB: Upgrade to the new-reference-structure - (Created missing setup sections in setup.xml, if any) - Moved the intro to book.xml - Changed the intro ID from .intro to intro. - Moved the constants entity to book.xml - Changed constants.xml to be an appendix - Moved the example to its own chapter (examples.xml) NOTE: The chapter now has the swish.examples ID, the section is now swish.examples-basic - Moved the requirements, install and configuration sections to setup.xml git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@248897 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/swish/book.xml | 55 ++++++++++++++++++ reference/swish/constants.xml | 6 +- reference/swish/examples.xml | 78 +++++++++++++++++++++++++ reference/swish/reference.xml | 105 ++-------------------------------- reference/swish/setup.xml | 66 +++++++++++++++++++++ 5 files changed, 207 insertions(+), 103 deletions(-) create mode 100644 reference/swish/book.xml create mode 100644 reference/swish/examples.xml create mode 100644 reference/swish/setup.xml diff --git a/reference/swish/book.xml b/reference/swish/book.xml new file mode 100644 index 0000000000..364a669bc4 --- /dev/null +++ b/reference/swish/book.xml @@ -0,0 +1,55 @@ + + + + + + + + swish + + + + &reftitle.intro; + + The swish extension provides the bindings for Swish-e API. + Swish-e stands for "Simple Web Indexing System for Humans - Enhanced" and + is an open source system for indexing and search. + Swish-e itself is licensed under GPL license, but uses a clause that + allows applications to link against the library if every copy of the + combined work is accompanied by the URL to Swish-e source code. Here it + is: http://swish-e.org. + + + &warn.experimental; + + + + &reference.swish.setup; + &reference.swish.constants; + &reference.swish.examples; + + &reference.swish.reference; + + + + + diff --git a/reference/swish/constants.xml b/reference/swish/constants.xml index 3a07a84f47..44dff3af8b 100644 --- a/reference/swish/constants.xml +++ b/reference/swish/constants.xml @@ -1,6 +1,6 @@ - -
+ + &reftitle.constants; &extension.constants; @@ -215,7 +215,7 @@ -
+ diff --git a/reference/swish/reference.xml b/reference/swish/reference.xml index afb24a313a..f13185a64b 100644 --- a/reference/swish/reference.xml +++ b/reference/swish/reference.xml @@ -1,107 +1,12 @@ - - - - + + - Swish Functions - swish - -
- &reftitle.intro; - - The swish extension provides the bindings for Swish-e API. - Swish-e stands for "Simple Web Indexing System for Humans - Enhanced" and - is an open source system for indexing and search. - Swish-e itself is licensed under GPL license, but uses a clause that - allows applications to link against the library if every copy of the - combined work is accompanied by the URL to Swish-e source code. Here it - is: http://swish-e.org. - - - &warn.experimental; - -
-
- &reftitle.required; - - PECL/swish requires PHP 5.1.3 or newer. - -
-
- &reftitle.install; - - &pecl.info; - &url.pecl.package;swish. - - - The latest PECL/swish Win32 DLL can be downloaded here: - php_swish.dll. - -
-
- &reftitle.runtime; - &no.config; -
-
- &reftitle.examples; - - - Basic search query - -Swish &Functions; -try { - - $swish = new Swish("index.swish-e"); - $results = $swish->query("test OR text"); - - echo "Found ", $results->hits, " results\n"; - while ($result = $results->nextResult()) { - var_dump($result); - break; //break after the first result - } - -} catch (SwishException $e) { - echo "Error: ", $e->getMessage(), "\n"; -} - -?> -]]> - - - - &example.outputs.similar; - - - int(1) - ["swishrank"]=> - int(1000) - ["swishfilenum"]=> - int(10) - ["swishdbfile"]=> - string(13) "index.swish-e" - ["swishdocpath"]=> - string(23) "README.SUBMITTING_PATCH" - ["swishtitle"]=> - NULL - ["swishdocsize"]=> - int(4557) - ["swishlastmodified"]=> - int(1072136752) -} -]]> - -
- &reference.swish.constants; - &reference.swish.classes; -
- &reference.swish.entities.functions; + &reference.swish.entities.functions;
+ + + + &reftitle.setup; + + +
+ &reftitle.required; + + PECL/swish requires PHP 5.1.3 or newer. + +
+ + + +
+ &reftitle.install; + + &pecl.info; + &url.pecl.package;swish. + + + The latest PECL/swish Win32 DLL can be downloaded here: + php_swish.dll. + +
+ + + +
+ &reftitle.runtime; + &no.config; +
+ + + +
+ &reftitle.resources; + &no.resource; +
+ + +
+ + +