public static function create(){ if (!isset(self::$instance)) { $c = __CLASS__; self::$instance = new $c; } return self::$instance; }
public function __construct() { if (!$this->db) { $this->db = YYKPDO::create(); } }