PHP 클래스 GravityFormsIframe_Addon

Extends the Gravity Forms add-on class. Functionality that needs access to the add-on API should be encapsulated since most methods and properties are protected.
부터: 2.0.0
상속: extends GFAddOn
파일 보기 프로젝트 열기: cedaro/gravity-forms-iframe

보호된 프로퍼티들

프로퍼티 타입 설명
$_capabilities array Members plugin integration.
$_capabilities_form_settings string Form settings capability.
$plugin GravityFormsIframe_Plugin Plugin instance.

공개 메소드들

메소드 설명
__construct ( GravityFormsIframe_Plugin $plugin ) Class constructor for setting up the add-on.
form_settings_fields ( array $form ) : array Declare the sections and fields for the iframe add-on.
scripts ( ) : array Register add-on scripts.

보호된 메소드들

메소드 설명
settings_iframe_embed_code ( array $field, boolean $echo = true ) : string Render a field for displaying the code to embed a form.

메소드 상세

__construct() 공개 메소드

Class constructor for setting up the add-on.
또한 보기: GFAddOn
부터: 2.0.0
public __construct ( GravityFormsIframe_Plugin $plugin )
$plugin GravityFormsIframe_Plugin Main plugin instance.

form_settings_fields() 공개 메소드

Declare the sections and fields for the iframe add-on.
부터: 2.0.0
public form_settings_fields ( array $form ) : array
$form array Form data.
리턴 array

scripts() 공개 메소드

Register add-on scripts.
부터: 2.0.0
public scripts ( ) : array
리턴 array

settings_iframe_embed_code() 보호된 메소드

Render a field for displaying the code to embed a form.
부터: 2.0.0
protected settings_iframe_embed_code ( array $field, boolean $echo = true ) : string
$field array Field array containing the configuration options of this field.
$echo boolean Whether the field should be displayed.
리턴 string

프로퍼티 상세

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

Members plugin integration.
부터: 2.0.0
protected array $_capabilities
리턴 array

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

Form settings capability.
부터: 2.0.0
protected string $_capabilities_form_settings
리턴 string

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

Plugin instance.
부터: 2.0.0
protected GravityFormsIframe_Plugin $plugin
리턴 GravityFormsIframe_Plugin