__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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\Data\Data;
use Nextend\Framework\Form\Fieldset\FieldsetHidden;
use Nextend\Framework\Pattern\MVCHelperTrait;
class Form extends Data {
use MVCHelperTrait;
protected static $counter = 1;
/** @var Base\PlatformFormBase */
private static $platformForm;
protected $id;
/**
* @var Data
*/
protected $context;
protected $controlName = '';
/**
* @var ContainerMain
*/
protected $container;
protected $classes = array(
'n2_form'
);
/**
* Form constructor.
*
* @param MVCHelperTrait $MVCHelper
* @param string $controlName
*/
public function __construct($MVCHelper, $controlName) {
$this->id = 'n2_form_' . self::$counter++;
$this->controlName = $controlName;
$this->setMVCHelper($MVCHelper);
$this->context = new Data();
parent::__construct();
$this->container = new ContainerMain($this);
}
/**
* @return ContainerMain
*/
public function getContainer() {
return $this->container;
}
public function getId() {
return $this->id;
}
/**
* @return Data
*/
public function getContext() {
return $this->context;
}
/**
* @param $path
*
* @return ContainerInterface|AbstractField
*/
public function getElement($path) {
/**
* Remove starting / path separator
*/
return $this->container->getElement(substr($path, 1));
}
public function render() {
echo '<div class="' . esc_attr(implode(' ', $this->classes)) . '">';
$this->container->renderContainer();
echo '</div>';
}
/**
* @return string
*/
public function getControlName() {
return $this->controlName;
}
public static function init() {
self::$platformForm = new Joomla\PlatformForm();
}
public static function tokenize() {
return self::$platformForm->tokenize();
}
public static function tokenizeUrl() {
return self::$platformForm->tokenizeUrl();
}
public static function checkToken() {
return self::$platformForm->checkToken();
}
/**
* @return FieldsetHidden
*/
public function getFieldsetHidden() {
return $this->container->getFieldsetHidden();
}
public function setDark() {
$this->classes[] = 'n2_form--dark';
}
public function addClass($className) {
$this->classes[] = $className;
}
}
Form::init();| 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 |
|