/** * @param IContextSource $context * @param null $group Unused * @param string $par Parameter passed to the page */ function __construct(IContextSource $context = null, $group = null, $par = null) { parent::__construct($context); $this->RCMaxAge = $this->getConfig()->get('ActiveUserDays'); $un = $this->getRequest()->getText('username', $par); $this->requestedUser = ''; if ($un != '') { $username = Title::makeTitleSafe(NS_USER, $un); if (!is_null($username)) { $this->requestedUser = $username->getText(); } } $this->setupOptions(); }
function __construct($group = null) { global $wgRequest, $wgActiveUserDays; $this->RCMaxAge = $wgActiveUserDays; $un = $wgRequest->getText('username'); $this->requestedUser = ''; if ($un != '') { $username = Title::makeTitleSafe(NS_USER, $un); if (!is_null($username)) { $this->requestedUser = $username->getText(); } } $this->setupOptions(); parent::__construct(); }
/** * @param IContextSource $context * @param FormOptions $opts */ function __construct(IContextSource $context = null, FormOptions $opts) { parent::__construct($context); $this->RCMaxAge = $this->getConfig()->get('ActiveUserDays'); $this->requestedUser = ''; $un = $opts->getValue('username'); if ($un != '') { $username = Title::makeTitleSafe(NS_USER, $un); if (!is_null($username)) { $this->requestedUser = $username->getText(); } } if ($opts->getValue('hidebots') == 1) { $this->hideRights[] = 'bot'; } if ($opts->getValue('hidesysops') == 1) { $this->hideGroups[] = 'sysop'; } }
function __construct(IContextSource $context = null, $par = null) { parent::__construct($context, $par); $this->mDb = CentralAuthUser::getCentralSlaveDB(); }