]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blobdiff - includes/ZhClient.php
MediaWiki 1.16.4
[autoinstalls/mediawiki.git] / includes / ZhClient.php
index 7f2c5cbfda6f8a0f0a86c8bc8a57dcc3844c2205..61faa8df716efe451cfcf725a8735d11906d70ef 100644 (file)
@@ -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);