__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Nextend\Framework\Form;
use Nextend\Framework\Form\Insert\AbstractInsert;
abstract class AbstractFieldset implements ContainerContainedInterface {
use TraitFieldset;
/**
* @var ContainedInterface;
*/
private $previous, $next;
public function getPrevious() {
return $this->previous;
}
public function setPrevious($element = null) {
$this->previous = $element;
}
public function getNext() {
return $this->next;
}
public function setNext($element = null) {
$this->next = $element;
if ($element) {
$element->setPrevious($this);
}
}
public function remove() {
$this->getParent()
->removeElement($this);
}
/**
* @var ContainerInterface
*/
protected $parent;
protected $name = '';
protected $label = '';
protected $controlName = '';
protected $class = '';
/**
* Container constructor.
*
* @param ContainerInterface|AbstractInsert $insertAt
* @param $name
* @param boolean|string $label
* @param array $parameters
*/
public function __construct($insertAt, $name, $label = false, $parameters = array()) {
$this->name = $name;
$this->label = $label;
if ($insertAt instanceof ContainerInterface) {
$this->parent = $insertAt;
$this->parent->addElement($this);
} else if ($insertAt instanceof AbstractInsert) {
$this->parent = $insertAt->insert($this);
}
$this->controlName = $this->parent->getControlName();
foreach ($parameters as $option => $value) {
$option = 'set' . $option;
$this->{$option}($value);
}
}
public function render() {
$this->renderContainer();
}
/**
* @param AbstractField $element
*
* @return string
*/
public function decorateElement($element) {
ob_start();
$element->displayElement();
return ob_get_clean();
}
/**
* @return bool
*/
public function hasLabel() {
return !empty($this->label);
}
/**
* @return string
*/
public function getName() {
return $this->name;
}
/**
* @return Form
*/
public function getForm() {
return $this->parent->getForm();
}
/**
* @return string
*/
public function getControlName() {
return $this->controlName;
}
/**
* @param string $controlName
*/
public function setControlName($controlName) {
$this->controlName = $controlName;
}
public function hasFields() {
return !empty($this->flattenElements);
}
/**
* @param string $class
*/
public function setClass($class) {
$this->class = $class;
}
}| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Base | Folder | 0775 |
|
|
| Container | Folder | 0775 |
|
|
| Element | Folder | 0775 |
|
|
| Fieldset | Folder | 0775 |
|
|
| Insert | Folder | 0775 |
|
|
| Joomla | Folder | 0775 |
|
|
| AbstractContainer.php | File | 1.48 KB | 0664 |
|
| AbstractField.php | File | 8.04 KB | 0664 |
|
| AbstractFieldset.php | File | 2.91 KB | 0664 |
|
| AbstractFormManager.php | File | 352 B | 0664 |
|
| ContainedInterface.php | File | 694 B | 0664 |
|
| ContainerContainedInterface.php | File | 133 B | 0664 |
|
| ContainerGeneral.php | File | 2.64 KB | 0664 |
|
| ContainerInterface.php | File | 1.02 KB | 0664 |
|
| ContainerMain.php | File | 1.56 KB | 0664 |
|
| Form.php | File | 2.58 KB | 0664 |
|
| FormTabbed.php | File | 1.82 KB | 0664 |
|
| TraitContainer.php | File | 2.55 KB | 0664 |
|
| TraitFieldset.php | File | 899 B | 0664 |
|