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; }
public function __construct() { parent::__construct('NewManuscript'); }
public function __construct() { parent::__construct('HelperScripts'); }
public function __construct() { parent::__construct('UserPage'); }
/** * This code can run in a few different contexts: * * 1: on normal entry, when no request to this page is POSTed, the default page, with all the collections and manuscripts of the current user is shown * 2: on POST, a collation table is constructed, old tempcollate collate data is deleted, the current collate data is stored in the tempcollate table, and the table is shown * 3: when redirecting to start, the default page is shown * 4: when saving the table, the data is retrieved from the tempcollate table, saved to the collations table, a new wiki page is created, and the user is redirected to this page * * Main entry point = ManuscriptDeskBaseSpecials::execute() */ public function __construct() { parent::__construct('Collate'); }