diff options
Diffstat (limited to 'includes/ZhClient.php')
-rw-r--r-- | includes/ZhClient.php | 17 |
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); |