public function Instance() { if (!isset(GalleryModel::$_instance)) { GalleryModel::$_instance = new GalleryModel(); } return GalleryModel::$_instance; }