Class WPDA_Simple_Form_Type_Icon

Displays an icon presenting the data type of a \WPDataAccess\Simple_Form\WPDA_Simple_Form_Item.

author Peter Schulz
since 1.0.0
package WPDataAccess\Simple_Form

 Methods

WPDA_Simple_Form_Type_Icon constructor

__construct(string $item_name, string $data_type) 

Sets the item data type.

since 1.0.0

Parameters

$item_name

string

Item name.

$data_type

string

Item data type.

Show data type icon

show() 

For our SIMPLE form we have four data types:

  • Number (all numeric items)
  • Date
  • Time
  • String (all other items...)
since 1.0.0

 Properties

 

Item data type

$data_type : string

Default

 

Item name

$item_name : string

Default