コード例 #1
0
ファイル: CCRequest.php プロジェクト: clancats/core
 /**
  * CCRequest constructor
  * 
  * @param CCRoute			$route
  * @param CCIn_Instance 		$input
  */
 public function __construct($route, $input = null)
 {
     // assign the route and input
     $this->route = $route;
     $this->input = $input;
     // create an object with default arguments
     $this->args = CCArr::object(ClanCats::$config->get('controller.default_args'));
 }
コード例 #2
0
ファイル: CCArr.php プロジェクト: clancats/core
 /**
  * test values by key
  *
  * @expectedException        InvalidArgumentException
  */
 public function testArrayObjectException()
 {
     CCArr::object('test');
 }