/** * Initialize complex static variables * @static */ public static function staticInit() { self::$logger = Logger::getLogger(__CLASS__); self::$defaultCheckList = array('checkBacklogOnResolved' => 1, 'checkBadBacklog' => 1, 'checkEffortEstim' => 1, 'checkTimeTracksOnNewIssues' => 1, 'checkIssuesNotInCommand' => 0, 'checkCommandsNotInCommandset' => 0, 'checkCommandSetNotInServiceContract' => 0, 'checkUnassignedTasks' => 0, 'checkTimetracksOnRemovedIssues' => 0); self::$checkDescriptionList = array('checkBacklogOnResolved' => T_('Backlog on resolved issues should be 0'), 'checkBadBacklog' => T_('Backlog on unresolved issues should not be 0'), 'checkEffortEstim' => T_('EffortEstim should not be 0'), 'checkTimeTracksOnNewIssues' => T_('There should be no timetracks on "new" issues '), 'checkIssuesNotInCommand' => T_('Issues should be referenced in a Command'), 'checkCommandsNotInCommandset' => T_('Commands should be referenced in a CommandSet'), 'checkCommandSetNotInServiceContract' => T_('CommandSets should be referenced in a ServiceContract'), 'checkUnassignedTasks' => T_('Issues should be assigned to someone'), 'checkTimetracksOnRemovedIssues' => T_('Check timetracks on removed issues (not needed if mantis plugin is enabled)')); /* * checkMgrEffortEstim * It is now allowed to have MgrEE = 0 * tasks having MgrEE > 0 are tasks that have been initialy defined at the Command's creation. * tasks having MgrEE = 0 are internal_tasks */ }