summaryrefslogtreecommitdiff
path: root/includes/ZhClient.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2008-08-15 01:29:47 +0200
committerPierre Schmitz <pierre@archlinux.de>2008-08-15 01:29:47 +0200
commit370e83bb0dfd0c70de268c93bf07ad5ee0897192 (patch)
tree491674f4c242e4d6ba0d04eafa305174c35a3391 /includes/ZhClient.php
parentf4debf0f12d0524d2b2427c55ea3f16b680fad97 (diff)
Update auf 1.13.0
Diffstat (limited to 'includes/ZhClient.php')
-rw-r--r--includes/ZhClient.php17
1 files changed, 4 insertions, 13 deletions
diff --git a/includes/ZhClient.php b/includes/ZhClient.php
index 7f2c5cbf..61faa8df 100644
--- a/includes/ZhClient.php
+++ b/includes/ZhClient.php
@@ -1,6 +1,4 @@
<?php
-/**
- */
/**
* Client for querying zhdaemon
@@ -22,8 +20,6 @@ class ZhClient {
/**
* Check if connection to zhdaemon is successful
- *
- * @access public
*/
function isconnected() {
return $this->mConnected;
@@ -80,10 +76,9 @@ class ZhClient {
/**
* Convert the input to a different language variant
*
- * @param string $text input text
- * @param string $tolang language variant
+ * @param $text string: input text
+ * @param $tolang string: language variant
* @return string the converted text
- * @access public
*/
function convert($text, $tolang) {
$len = strlen($text);
@@ -97,9 +92,8 @@ class ZhClient {
/**
* Convert the input to all possible variants
*
- * @param string $text input text
+ * @param $text string: input text
* @return array langcode => converted_string
- * @access public
*/
function convertToAllVariants($text) {
$len = strlen($text);
@@ -121,9 +115,8 @@ class ZhClient {
/**
* Perform word segmentation
*
- * @param string $text input text
+ * @param $text string: input text
* @return string segmented text
- * @access public
*/
function segment($text) {
$len = strlen($text);
@@ -137,8 +130,6 @@ class ZhClient {
/**
* Close the connection
- *
- * @access public
*/
function close() {
fclose($this->mFP);