示例#1
0
 /**
  * getInstanceメソッド
  *
  * このクラスのオブジェクトを生成する。
  * 既に生成されていたら、前回と同じものを返す。
  *
  * @return object $instance
  */
 public static function getInstance()
 {
     if (!self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
示例#2
0
/**
 * siteContentsData.php
 *
 * Copyright (c) 2009 Fraise, Inc.
 * All rights reserved.
 */
/**
 * 管理画面サイト表示内容データページ処理ファイル。
 *
 * @copyright   2009 Fraise, Inc.
 * @author      mitsuhiro nakamura
 */
require_once D_BASE_DIR . "/common/admin_common.php";
require_once $controllerOBJ->getIncludeBusinessLogic("admInclude");
$param = $requestOBJ->getParameterExcept($exceptArray);
$AdmSiteContentsOBJ = AdmSiteContents::getInstance();
$siteContentsData = $AdmSiteContentsOBJ->getSiteContentsData($param["page_banner_id"]);
// セッションオブジェクトのインスタンス
$returnSessOBJ = new ComSessionNamespace("return");
$execMsgSessOBJ = new ComSessionNamespace("exec_msg");
// メッセージの取得
$smartyOBJ->assign("execMsg", $execMsgSessOBJ->getIterator());
// セッション変数の破棄
$execMsgSessOBJ->unsetAll();
// 入力項目の取得
$returnValue = $returnSessOBJ->return;
// セッション変数の破棄
$returnSessOBJ->unsetAll();
// 登録エラーで戻った場合
if ($returnValue["return_flag"]) {
    $siteContentsData = $returnValue;