__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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;
class ContainerGeneral extends AbstractContainer {
/**
* @var ContainerInterface
*/
protected $parent;
protected $name = '';
protected $label = '';
protected $class = '';
/**
* Container constructor.
*
* @param ContainerInterface|AbstractInsert $insertAt
* @param string $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 removeElement($element) {
$previous = $element->getPrevious();
$next = $element->getNext();
if ($this->first === $element) {
$this->first = $next;
}
if ($this->last === $element) {
$this->last = $previous;
}
if ($previous) {
$previous->setNext($next);
} else {
$next->setPrevious();
}
}
/**
* @return ContainerInterface
*/
public function getParent() {
return $this->parent;
}
public function getPath() {
return $this->parent->getPath() . '/' . $this->name;
}
/**
* @param string $class
*/
public function setClass($class) {
$this->class = $class;
}
/**
* @return bool
*/
public function hasLabel() {
return !empty($this->label);
}
/**
* @return string
*/
public function getLabel() {
return $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;
}
}| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Base | Folder | 0775 |
|
|
| Container | Folder | 0775 |
|
|
| Element | Folder | 0775 |
|
|
| Fieldset | Folder | 0775 |
|
|
| Insert | Folder | 0775 |
|
|
| WordPress | Folder | 0775 |
|
|
| AbstractContainer.php | File | 1.48 KB | 0775 |
|
| AbstractField.php | File | 8.04 KB | 0775 |
|
| AbstractFieldset.php | File | 2.91 KB | 0775 |
|
| AbstractFormManager.php | File | 352 B | 0775 |
|
| ContainedInterface.php | File | 694 B | 0775 |
|
| ContainerContainedInterface.php | File | 133 B | 0775 |
|
| ContainerGeneral.php | File | 2.64 KB | 0775 |
|
| ContainerInterface.php | File | 1.02 KB | 0775 |
|
| ContainerMain.php | File | 1.56 KB | 0775 |
|
| Form.php | File | 2.57 KB | 0775 |
|
| FormTabbed.php | File | 1.82 KB | 0775 |
|
| TraitContainer.php | File | 2.55 KB | 0775 |
|
| TraitFieldset.php | File | 899 B | 0775 |
|