Prismic.io PHP kit  3.0.0
Public Member Functions | List of all members
Prismic\Form Class Reference

Public Member Functions

 __construct ($maybeName, $method, $maybeRel, $enctype, $action, $fields)
 
 getName ()
 
 getMethod ()
 
 getRel ()
 
 getEnctype ()
 
 getAction ()
 
 getFields ()
 

Detailed Description

Embodies a RESTful form. This is meant for internal use.

Constructor & Destructor Documentation

§ __construct()

Prismic\Form::__construct (   $maybeName,
  $method,
  $maybeRel,
  $enctype,
  $action,
  $fields 
)

Constructs the Form object.

Parameters
string$maybeNamethe name if there's one
string$methodthe method to use
string$maybeRelthe rel if there's one
string$enctypethe encoding type
string$actionthe action
array$fieldsthe list of Prismic::FieldForm objects that can be used

Member Function Documentation

§ getAction()

Prismic\Form::getAction ( )

Returns the action

Returns
string the action

§ getEnctype()

Prismic\Form::getEnctype ( )

Returns the enctype

Returns
string the enctype

§ getFields()

Prismic\Form::getFields ( )

Returns the fields

Returns
string the fields

§ getMethod()

Prismic\Form::getMethod ( )

Returns the method

Returns
string the method

§ getName()

Prismic\Form::getName ( )

Returns the name

Returns
string the name

§ getRel()

Prismic\Form::getRel ( )

Returns the rel

Returns
string the rel

The documentation for this class was generated from the following file: