Form_Button_Cancel_Model Class Reference

Represents a form cancel button. More...

Inheritance diagram for Form_Button_Cancel_Model:
Form_Button_Model

Public Member Functions

 __construct ($name, $pretty_name)
 Initialize the name and pretty name for the field.
 get_type ()
 Get the view of this field, relative to form/ directory in the views folder.

Detailed Description

Represents a form cancel button.


Constructor & Destructor Documentation

Form_Button_Cancel_Model::__construct ( name,
pretty_name 
)

Initialize the name and pretty name for the field.

There is (almost) no fields that shouldn't take options. Thus (almost) all field types needs to override this method. Thus not overriding this methods is (most likely) an error. And those can do it anyway. Thus protected.

Parameters:
$name string
$pretty_name string

Reimplemented from Form_Button_Model.


Member Function Documentation

Form_Button_Cancel_Model::get_type (  ) 

Get the view of this field, relative to form/ directory in the views folder.

It should be possible to do "skins" for forms by adding a subdirectory in the form/ folder, which should re-implement the views.

Returns:
string

Reimplemented from Form_Button_Model.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 19 Dec 2018 for ninja by  doxygen 1.6.1