/** * インスタンス化 * */ static function get_instance() { if (!isset(self::$iTemplate)) { self::$iTemplate = new MTSSB_Mail_Template_Admin(); } return self::$iTemplate; }
/** * 処理モジュールオブジェクトロード * */ private function _mtssb_load_module($page) { switch ($page) { case self::ADMIN_MENU: //case self::PAGE_CALENDAR : if (!class_exists('MTSSB_Calendar_Admin')) { require_once 'mtssb-calendar-admin.php'; } $this->calendar = MTSSB_Calendar_Admin::get_instance(); break; case self::PAGE_BOOKING: if (!class_exists('MTSSB_Booking_Admin')) { require_once 'mtssb-booking-admin.php'; } $this->booking = MTSSB_Booking_Admin::get_instance(); break; case self::PAGE_SETTINGS: if (!class_exists('MTSSB_Settings_Admin')) { require_once 'mtssb-settings-admin.php'; } $this->settings = MTSSB_Settings_Admin::get_instance(); break; case self::PAGE_OPTION: if (!class_exists('MTSSB_Option_Admin')) { require_once 'mtssb-option-admin.php'; } $this->option = MTSSB_Option_Admin::get_instance(); break; case self::PAGE_MAIL_TEMPLATE: if (!class_exists('MTSSB_Mail_Template_Admin')) { require_once 'mtssb-mail-template-admin.php'; } $this->mail_template = MTSSB_Mail_Template_Admin::get_instance(); break; case self::PAGE_SCHEDULE: if (!class_exists('MTSSB_Schedule_Admin')) { require_once 'mtssb-schedule-admin.php'; } $this->schedule = MTSSB_Schedule_Admin::get_instance(); break; default: break; } }