示例#1
0
 public static function getInstance()
 {
     if (self::$_instance === null) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
示例#2
0
 /**
  * Get instance of YTools_Image
  *
  */
 private static function _getImage()
 {
     if (self::$image === null) {
         self::_import('image');
         self::$image =& YTools_Image::getInstance();
     }
     return self::$image;
 }