/** * インスタンスの取得。 * * インスタンスが既に生成済みの場合は既存インスタンスを返し、 * 未生成であれば新たに生成したものを返す。 * * @return mixed 成功時はインスタンス、失敗時はfalseを返す */ public static function getInstance() { if (!self::$_instance) { self::$_instance = new self(); } return self::$_instance; }
/** * informationOpetatorList.php * * Copyright (c) 2009 Fraise, Inc. * All rights reserved. */ /** * 管理画面 問い合わせ管理者一覧 * * @copyright 2010 Fraise, Inc. * @author Norihisa Hosoda */ require_once D_BASE_DIR . "/common/admin_common.php"; require_once $controllerOBJ->getIncludeBusinessLogic("admInclude"); $AdmInfoOperatorOBJ = AdmInformationOperator::getInstance(); $adminInfoOperatorList = $AdmInfoOperatorOBJ->getList(); $smartyOBJ->assign("adminInfoOperatorList", $adminInfoOperatorList); $execMsgSessOBJ = new ComSessionNamespace("exec_msg"); $returnSessOBJ = new ComSessionNamespace("return"); // 入力項目の取得 $returnValue = $returnSessOBJ->return; // セッション変数の破棄 $returnSessOBJ->unsetAll(); // 登録エラーで戻った場合 if ($returnValue["return_flag"]) { $param = $returnValue; } else { $param["return_flag"] = 0; } // 戻り値の取得