Invision Power Services, Inc. * @copyright (c) Invision Power Services, Inc. * @license https://www.invisioncommunity.com/legal/standards/ * @package Invision Community * @since 18 Feb 2013 */ namespace IPS\Helpers; /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } /** * Form Builder */ class _Form { /** * @brief Form ID */ public $id = ''; /** * @brief Action URL */ public $action = ''; /** * @brief Input Elements HTML */ public $elements = array(); /** * @brief Tabs */ protected $tabs = array(); /** * @brief Current Tab we're adding elements to */ protected $currentTab = ''; /** * @brief Active tab */ public $activeTab = NULL; /** * @brief Additional class for tables */ protected $tabClasses = array(); /** * @brief Sidebar */ public $sidebar = array(); /** * @brief CSS Class(es) */ public $class = 'ipsForm_horizontal'; /** * @brief Generic Form Error */ public $error = ''; /** * @brief Hidden Values */ public $hiddenValues = array(); /** * @brief Extra attributes for `