PHP 클래스 Craft\AmFormsVariable

파일 보기 프로젝트 열기: am-impact/amforms

공개 메소드들

메소드 설명
displayAntispam ( ) : boolean | string Display AntiSpam widget.
displayForm ( string $handle ) : string Display a form.
displayRecaptcha ( ) : boolean | string Display a reCAPTCHA widget.
displaySubmission ( integer $id ) : string Display a submission to edit and save it.
getAllForms ( ) : array Get all forms.
getFieldHandles ( ) : array Get field handles.
getForm ( string $handle ) : AmForms_FormModel | null Get a form by its handle.
getFormByHandle ( string $handle ) : AmForms_FormModel | null Get a form by its handle.
getFormById ( integer $id ) : AmForms_FormModel | null Get a form by its ID.
getName ( ) : string Get the Plugin's name.
getNamespaceForForm ( AmForms_FormModel $form ) : string Get a namespace for a form.
getProperFieldTypes ( array $fieldTypes ) : array Get proper field types.
getSettingsValueByHandleAndType ( string $handle, string $type, mixed $defaultValue = null ) : mixed Get a setting value by their handle and type.
getSubmissionById ( integer $id, boolean $setAsActive = false ) : craft\AmForms_SubmissionModel | null Get a submission by its ID.
submissions ( array $attributes = [] ) : craft\ElementCriteriaModel Returns a criteria model for AmForms_Submission elements.

메소드 상세

displayAntispam() 공개 메소드

Display AntiSpam widget.
public displayAntispam ( ) : boolean | string
리턴 boolean | string

displayForm() 공개 메소드

Display a form.
public displayForm ( string $handle ) : string
$handle string
리턴 string

displayRecaptcha() 공개 메소드

Display a reCAPTCHA widget.
public displayRecaptcha ( ) : boolean | string
리턴 boolean | string

displaySubmission() 공개 메소드

Display a submission to edit and save it.
public displaySubmission ( integer $id ) : string
$id integer
리턴 string

getAllForms() 공개 메소드

Get all forms.
public getAllForms ( ) : array
리턴 array

getFieldHandles() 공개 메소드

Get field handles.
public getFieldHandles ( ) : array
리턴 array

getForm() 공개 메소드

Get a form by its handle.
public getForm ( string $handle ) : AmForms_FormModel | null
$handle string
리턴 AmForms_FormModel | null

getFormByHandle() 공개 메소드

Get a form by its handle.
public getFormByHandle ( string $handle ) : AmForms_FormModel | null
$handle string
리턴 AmForms_FormModel | null

getFormById() 공개 메소드

Get a form by its ID.
public getFormById ( integer $id ) : AmForms_FormModel | null
$id integer
리턴 AmForms_FormModel | null

getName() 공개 메소드

Get the Plugin's name.
public getName ( ) : string
리턴 string

getNamespaceForForm() 공개 메소드

Get a namespace for a form.
public getNamespaceForForm ( AmForms_FormModel $form ) : string
$form AmForms_FormModel
리턴 string

getProperFieldTypes() 공개 메소드

Get proper field types.
public getProperFieldTypes ( array $fieldTypes ) : array
$fieldTypes array All Craft's fieldtypes.
리턴 array

getSettingsValueByHandleAndType() 공개 메소드

Get a setting value by their handle and type.
public getSettingsValueByHandleAndType ( string $handle, string $type, mixed $defaultValue = null ) : mixed
$handle string
$type string
$defaultValue mixed
리턴 mixed

getSubmissionById() 공개 메소드

Get a submission by its ID.
public getSubmissionById ( integer $id, boolean $setAsActive = false ) : craft\AmForms_SubmissionModel | null
$id integer
$setAsActive boolean [Optional] Set as active submission, for editing purposes.
리턴 craft\AmForms_SubmissionModel | null

submissions() 공개 메소드

Returns a criteria model for AmForms_Submission elements.
public submissions ( array $attributes = [] ) : craft\ElementCriteriaModel
$attributes array
리턴 craft\ElementCriteriaModel