/** * the singleton pattern * * @return HumanResources_Controller */ public static function getInstance() { if (self::$_instance === NULL) { self::$_instance = new HumanResources_Controller(); } return self::$_instance; }
/** * Sets the config for HR * * @param array $config */ public function setConfig($config) { return HumanResources_Controller::getInstance()->setConfig($config); }