protected function setVariables() { parent::setVariables(); global $wgNewManuscriptOptions; //there is both a lowercase alphabet, and a uppercase alphabet, because the lowercase alphabet is used for the database query, and the uppercase alphabet //for the button values $numbers = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9'); $this->lowercase_alphabet = array_merge(range('a', 'z'), $numbers); $this->uppercase_alphabet = array_merge(range('A', 'Z'), $numbers); }
/** * Set variables that are used throughout the special page */ protected function setVariables() { global $wgStylometricAnalysisOptions, $wgWebsiteRoot, $wgPythonPath, $wgPystylPath; parent::setVariables(); $this->python_path = $wgPythonPath; $this->min_words_collection = $wgStylometricAnalysisOptions['min_words_collection']; $svg_dir = 'stylometricanalysissvg'; $this->base_outputpath = $wgWebsiteRoot . '/' . $svg_dir . '/' . $this->user_name; $this->base_linkpath = $svg_dir . '/' . $this->user_name; $this->pystyl_path = $wgPystylPath; return true; }