Example #1
0
<?php

/**
 * 各画面共通処理(認証前)
 *
 * @created    2015-01-16
 * @author     --
 * @version    v1.0
 * @copyright  Copyright (c) 2015 USEN
 */
session_start();
set_include_path(get_include_path() . PATH_SEPARATOR . "/var/sheep/web/lib");
include_once "common/Common.php";
try {
    //ページキー取得
    $PAGE = isset($PAGE) && constant($PAGE) ? constant($PAGE) : null;
    //パラメーター取得
    $req = new Request();
    $request = $req->getAll();
} catch (Exception $e) {
    $param['errors'][] = "システムエラーが発生しました。";
    renderTemplate('error.tpl', $param);
    exit;
}
Example #2
0
 public static function getAll()
 {
     $service = new Request();
     return $service->getAll(self::RESOURCE);
 }
Example #3
0
 public static function getAll($parentCode)
 {
     $newCtrl = self::RESOURCE . "/" . $parentCode . "/" . self::ACTION;
     $service = new Request();
     return $service->getAll($newCtrl);
 }
Example #4
0
 /**
  * @depends	testGetAll
  * @return	null
  */
 public function testGetAllParamTypeDoesNotExist()
 {
     $this->assertFalse($this->input->getAll('does-not-exist'));
     $this->assertFalse($this->input->getAll(array(12345)));
     $this->assertFalse($this->input->getAll(new StdClass()));
 }