SpamModel::_Instance PHP 메소드

_Instance() 보호된 정적인 메소드

protected static _Instance ( ) : SpamModel
리턴 SpamModel
    protected static function _Instance()
    {
        if (!self::$_Instance) {
            self::$_Instance = new SpamModel();
        }
        return self::$_Instance;
    }

Usage Example

예제 #1
0
 /**
  *
  *
  * @return SpamModel
  */
 protected static function _Instance()
 {
     if (!self::$_Instance) {
         self::$_Instance = new SpamModel();
     }
     return self::$_Instance;
 }