/** * Jeżeli w rejestrze nie ma ustawionej kolumny sortowania, * to ustawiamy ją na podstawie stałej SORT_COLUMN pochodzącej z klasy dziecka * * @throws MK_Exception */ private function _prepareSortParam() { if (!MK_Registry::isRegistered('sort') || MK_Registry::get('sort') === null) { $constName = get_class($this) . '::SORT_COLUMN'; MK_Registry::set('sort', defined($constName) ? constant($constName) : null); } }
/** * Ustawia nazwe pliku z logami */ public static function prepareLogFile() { if (MK_Registry::isRegistered("logFile") == false) { MK_Registry::set("logFile", MK_Registry::get("upgradeLogFolder") . DIRECTORY_SEPARATOR . "status.log"); } }