/** * Static method returns loader object. Singleton pattern. * * @return CBPWorkflowTemplateLoader */ public static function GetLoader() { if (!isset(self::$instance)) { $c = __CLASS__; self::$instance = new $c(); } return self::$instance; }