コード例 #1
0
ファイル: ImageButton.php プロジェクト: JPalounek/IconStore
 /**
  * Loads HTTP data.
  * @return void
  */
 public function loadHttpData()
 {
     $path = $this->getHtmlName();
     // img_x or img['x']
     $path = explode('[', strtr(str_replace(']', '', strpos($path, '[') === FALSE ? $path . '.x' : substr($path, 0, -2)), '.', '_'));
     $this->setValue(Nette\ArrayTools::get($this->getForm()->getHttpData(), $path) !== NULL);
 }
コード例 #2
0
ファイル: FormControl.php プロジェクト: redhead/nette
	/**
	 * Loads HTTP data.
	 * @return void
	 */
	public function loadHttpData()
	{
		$path = explode('[', strtr(str_replace(array('[]', ']'), '', $this->getHtmlName()), '.', '_'));
		$this->setValue(Nette\ArrayTools::get($this->getForm()->getHttpData(), $path));
	}
コード例 #3
0
ファイル: HttpRequest.php プロジェクト: nella/ActiveMapper
 /**
  * Returns uploaded file.
  * @param  string key (or more keys)
  * @return HttpUploadedFile
  */
 public final function getFile($key)
 {
     if ($this->files === NULL) {
         $this->initialize();
     }
     $args = func_get_args();
     return Nette\ArrayTools::get($this->files, $args);
 }
コード例 #4
0
ファイル: HttpRequest.php プロジェクト: newPOPE/screencast
	/**
	 * Returns uploaded file.
	 * @param  string key (or more keys)
	 * @return HttpUploadedFile
	 */
	final public function getFile($key)
	{
		$args = func_get_args();
		return Nette\ArrayTools::get($this->files, $args);
	}