(0 . 0)(1 . 61)
122881 <?php
122882 /**
122883 * $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $
122884 *
122885 * @package MCManager.includes
122886 * @author Moxiecode
122887 */
122888
122889 class SpellChecker {
122890 /**
122891 * Constructor.
122892 *
122893 * @param $config Configuration name/value array.
122894 */
122895 function SpellChecker(&$config) {
122896 $this->_config = $config;
122897 }
122898
122899 /**
122900 * Simple loopback function everything that gets in will be send back.
122901 *
122902 * @param $args.. Arguments.
122903 * @return {Array} Array of all input arguments.
122904 */
122905 function &loopback(/* args.. */) {
122906 return func_get_args();
122907 }
122908
122909 /**
122910 * Spellchecks an array of words.
122911 *
122912 * @param {String} $lang Language code like sv or en.
122913 * @param {Array} $words Array of words to spellcheck.
122914 * @return {Array} Array of misspelled words.
122915 */
122916 function &checkWords($lang, $words) {
122917 return $words;
122918 }
122919
122920 /**
122921 * Returns suggestions of for a specific word.
122922 *
122923 * @param {String} $lang Language code like sv or en.
122924 * @param {String} $word Specific word to get suggestions for.
122925 * @return {Array} Array of suggestions for the specified word.
122926 */
122927 function &getSuggestions($lang, $word) {
122928 return array();
122929 }
122930
122931 /**
122932 * Throws an error message back to the user. This will stop all execution.
122933 *
122934 * @param {String} $str Message to send back to user.
122935 */
122936 function throwError($str) {
122937 die('{"result":null,"id":null,"error":{"errstr":"' . addslashes($str) . '","errfile":"","errline":null,"errcontext":"","level":"FATAL"}}');
122938 }
122939 }
122940
122941 ?>