public function __construct($get, $post, $files) { $this->get = HashMap::fromArray("string", "?", $get); $this->post = HashMap::fromArray("string", "?", $post); $this->files = $files; $this->postVars = new ArrayList("MovicoPostVar"); foreach ($post as $name => $value) { if (String::create($name)->startsWith("#")) { $type = isset($post[self::TYPE_PREFIX . $name]) ? $post[self::TYPE_PREFIX . $name] : self::DEFAULT_TYPE; $this->postVars->add(new MovicoPostVar($name, $value, $type)); } } }
public function __construct() { $this->pointsList = HashMap::fromArray("integer", "integer", array(0 => 0, 1 => 0, 2 => 0, 3 => 1, 4 => 1, 5 => 2, 6 => 3, 7 => 5, 8 => 11)); }