コード例 #1
0
 /**
  * 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;
 }
コード例 #2
0
ファイル: Email.php プロジェクト: ksecor/civicrm
 /**
  * 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;
 }