PHP 클래스 Contao\Form

Provide methods to handle front end forms.
상속: extends Hybrid
파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$arrFormUsages array Form usages during same request
$objModel FormModel Model
$strKey string Key
$strTable string Table
$strTemplate string Template

공개 메소드들

메소드 설명
generate ( ) : string Remove name attributes in the back end so the form is not validated

보호된 메소드들

메소드 설명
compile ( ) : string Generate the form
getMaxFileSize ( ) : integer Get the maximum file size that is allowed for file uploads
initializeSession ( string $formId ) Initialize the form in the current session
processFormData ( array $arrSubmitted, array $arrLabels, array $arrFields ) Process form data, store it in the session and redirect to the jumpTo page

메소드 상세

compile() 보호된 메소드

Generate the form
protected compile ( ) : string
리턴 string

generate() 공개 메소드

Remove name attributes in the back end so the form is not validated
public generate ( ) : string
리턴 string

getMaxFileSize() 보호된 메소드

Get the maximum file size that is allowed for file uploads
사용 중단: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use $this->objModel->getMaxUploadFileSize() instead.
protected getMaxFileSize ( ) : integer
리턴 integer

initializeSession() 보호된 메소드

Initialize the form in the current session
protected initializeSession ( string $formId )
$formId string

processFormData() 보호된 메소드

Process form data, store it in the session and redirect to the jumpTo page
protected processFormData ( array $arrSubmitted, array $arrLabels, array $arrFields )
$arrSubmitted array
$arrLabels array
$arrFields array

프로퍼티 상세

$arrFormUsages 보호되어 있는 정적으로 프로퍼티

Form usages during same request
protected static array $arrFormUsages
리턴 array

$objModel 보호되어 있는 프로퍼티

Model
protected FormModel,contao $objModel
리턴 FormModel

$strKey 보호되어 있는 프로퍼티

Key
protected string $strKey
리턴 string

$strTable 보호되어 있는 프로퍼티

Table
protected string $strTable
리턴 string

$strTemplate 보호되어 있는 프로퍼티

Template
protected string $strTemplate
리턴 string