コード例 #1
0
 public static function getInstance()
 {
     if (self::$_instance === null) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
コード例 #2
0
ファイル: sjtools.php プロジェクト: sam-akopyan/hamradio
 /**
  * Get instance of SjTools_Image
  *
  */
 private static function _getImage()
 {
     if (self::$image === null) {
         self::_import('image');
         self::$image =& SjTools_Image::getInstance();
     }
     return self::$image;
 }