public static function ifActiveMarkIt(array $matchPattern, $allInThisControllers = []) { $currentPage = FrontController::whereIm(); $currentPage = mb_strtolower($currentPage); $selected = Null; $selected = in_array($currentPage, $matchPattern) ? "active" : Null; if (count($allInThisControllers)) { foreach ($allInThisControllers as $controller) { if (mb_strtolower(FrontController::getController()) == mb_strtolower($controller)) { $selected = "active"; } } } return $selected; }
/** * Returns variables required by Smarty channel list template * @return array */ private function getSmartyVars() { $_GET['module'] = $this->name; $pc = FrontController::getController('dotpaypaymentModuleFrontController'); return $pc->getArrayForSmarty(); }