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
download
app
Nette
Forms
Controls
Show Hidden Files
Edit File: /data/www/19068/fszoo_net/download/app/Nette/Forms/Controls/MultiSelectBox.php
<?php /** * This file is part of the Nette Framework (http://nette.org) * * Copyright (c) 2004 David Grudl (http://davidgrudl.com) * * For the full copyright and license information, please view * the file license.txt that was distributed with this source code. */ namespace Nette\Forms\Controls; use Nette; /** * Select box control that allows multiple item selection. * * @author David Grudl */ class MultiSelectBox extends SelectBox { /** * Returns selected keys. * @return array */ public function getValue() { return array_intersect($this->getRawValue(), array_keys($this->allowed)); } /** * Returns selected keys (not checked). * @return array */ public function getRawValue() { if (is_scalar($this->value)) { return array($this->value); } else { $res = array(); foreach ((array) $this->value as $val) { if (is_scalar($val)) { $res[] = $val; } } return $res; } } /** * Returns selected values. * @return array */ public function getSelectedItem() { return $this->areKeysUsed() ? array_intersect_key($this->allowed, array_flip($this->getValue())) : $this->getValue(); } /** * Returns HTML name of control. * @return string */ public function getHtmlName() { return parent::getHtmlName() . '[]'; } /** * Generates control's HTML element. * @return Nette\Utils\Html */ public function getControl() { return parent::getControl()->multiple(TRUE); } /** * Count/length validator. * @param MultiSelectBox * @param array min and max length pair * @return bool */ public static function validateLength(MultiSelectBox $control, $range) { if (!is_array($range)) { $range = array($range, $range); } $count = count($control->getSelectedItem()); return ($range[0] === NULL || $count >= $range[0]) && ($range[1] === NULL || $count <= $range[1]); } }
Crotin
Name
Size
Permissions
Modified
User/Group
BaseControl.php
13409
0644
2015-08-08 18:27:55
Unknown/Unknown
MultiSelectBox.php
1907
0644
2015-08-08 18:27:55
Unknown/Unknown
Button.php
1019
0644
2015-08-08 18:27:54
Unknown/Unknown
HiddenField.php
1306
0644
2015-08-08 18:27:55
Unknown/Unknown
SelectBox.php
4831
0644
2015-08-08 18:27:55
Unknown/Unknown
ImageButton.php
1283
0644
2015-08-08 18:27:55
Unknown/Unknown
TextBase.php
5369
0644
2015-08-08 18:27:55
Unknown/Unknown
TextInput.php
2358
0644
2015-08-08 18:27:55
Unknown/Unknown
RadioList.php
3554
0644
2015-08-08 18:27:55
Unknown/Unknown
Checkbox.php
1045
0644
2015-08-08 18:27:56
Unknown/Unknown
UploadControl.php
2930
0644
2015-08-08 18:27:55
Unknown/Unknown
SubmitButton.php
2320
0644
2015-08-08 18:27:55
Unknown/Unknown
TextArea.php
1060
0644
2015-08-08 18:27:55
Unknown/Unknown
NGANU
Rename
Hapus
Chmod
Chown
Touch
Zip
Unzip
Download
Crotin