public function testSetNested() { $structure = new Structure(); $structure->set('key 1', 'value 1'); $structure->set('key 2[key 3]', 'value 2'); $this->assertEquals('value 2', $structure->get('key 2[key 3]')); $this->assertEquals('value 1', $structure->get('key 1')); }
/** * Get the value of this field from the request * @param string $name name of the request variable * @return mixed value of this field from the request */ protected function getRequestValue($name = null) { if ($name == null) { $name = $this->name; } $request = new Structure($_REQUEST); return $request->get($name); }