Modified Special:Categories to subclass SpecialPage
[lhc/web/wiklou.git] / includes / ZhClient.php
index bf2d393..a029be1 100644 (file)
@@ -20,8 +20,6 @@ class ZhClient {
 
        /**
         * Check if connection to zhdaemon is successful
-        *
-        * @access public
         */
        function isconnected() {
                return $this->mConnected;
@@ -78,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);
@@ -95,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);
@@ -119,24 +115,21 @@ 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);
                $q = "SEG $len\n$text";
                $result = $this->query($q);
                if(!$result) {// fallback to character based segmentation
-                       $result = ZhClientFake::segment($text);
+                       $result = $this->segment($text);
                }
                return $result;
        }
 
        /**
         * Close the connection
-        *
-        * @access public
         */
        function close() {
                fclose($this->mFP);