/** * Returns an instance of this class * * This method allows the passed argument to be either an instance of * IDS_Init or an array. * * @param mixed $config IDS_Init | array * @param string $classname the class name to use * * @return object $this */ public static function getInstance($config, $classname = 'IDS_Log_Email') { if (!self::$instance) { self::$instance = new $classname($config); } return self::$instance; }
/** * Returns an instance of this class * * This method allows the passed argument to be either an instance of * IDS_Init or an array. * * @param mixed $config IDS_Init | array * * @return object $this */ public static function getInstance($config) { if (!self::$instance) { self::$instance = new IDS_Log_Email($config); } return self::$instance; }