FRED™  3.0
FRED™: Framework for Rapid and Easy Development
Widget Class Reference
Inheritance diagram for Widget:
Thing Char Check Date File Grid Group Hidden Memo Number Options Password

Public Member Functions

 __construct ($id, $view, $widget)
 
 renderCaption ()
 
 render ($value=null, $raw=false)
 
- Public Member Functions inherited from Thing
 propertyExists ($property)
 Check if a property exists (public or published). More...
 
 constants ($prefix=null)
 Return all constants. More...
 
 get ($key)
 Get one or more properties. More...
 
 set ($key, $value=null)
 Set one or more properties. More...
 
 __get ($key)
 
 __set ($key, $value)
 

Protected Member Functions

 attribs ()
 
 containerClass ($display)
 
 container ($content, $display)
 
 renderHidden ($value, $raw)
 
 renderMinimal ($value, $raw)
 
 renderInput ($value, $raw, $attribs=null)
 
 renderReadable ($value, $raw)
 
 renderWriteable ($value, $raw)
 
 getDefaultValue ()
 
 getDisplayNames ()
 
 getHtml ()
 
- Protected Member Functions inherited from Thing
 publish ($property, $visibility=self::READABLE)
 Publish a property (or hide it again). More...
 
 configure ($config)
 Configure the object. More...
 
 _get ($key)
 Default getter if no specific setter is defined, and the property is also not published (readable). More...
 
 _set ($key, $value)
 Default setter if no specific setter is defined, and the property is also not published (writeable). More...
 

Protected Attributes

 $_id = null
 
 $_name = null
 
 $_view = null
 
 $_widget = null
 
 $_inputType = 'text'
 
 $_displayNames = []
 
- Protected Attributes inherited from Thing
 $_published = []
 Published properties (key = name of property, value = visibility). More...
 

Additional Inherited Members

- Data Fields inherited from Thing
const HIDDEN = 0
 Property is hidden. More...
 
const READABLE = 1
 Property is readable. More...
 
const WRITEABLE = 2
 Property is writeable. More...
 
const READWRITE = 3
 Property is readable and writeable. More...
 

Detailed Description

Definition at line 5 of file Widget.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $id,
  $view,
  $widget 
)

Definition at line 16 of file Widget.php.

Member Function Documentation

◆ attribs()

attribs ( )
protected

Definition at line 28 of file Widget.php.

◆ container()

container (   $content,
  $display 
)
protected

Definition at line 42 of file Widget.php.

◆ containerClass()

containerClass (   $display)
protected

Definition at line 32 of file Widget.php.

◆ getDefaultValue()

getDefaultValue ( )
protected

Definition at line 94 of file Widget.php.

◆ getDisplayNames()

getDisplayNames ( )
protected

Definition at line 98 of file Widget.php.

◆ getHtml()

getHtml ( )
protected

Definition at line 107 of file Widget.php.

◆ render()

render (   $value = null,
  $raw = false 
)

Definition at line 86 of file Widget.php.

◆ renderCaption()

renderCaption ( )

Definition at line 23 of file Widget.php.

◆ renderHidden()

renderHidden (   $value,
  $raw 
)
protected

Definition at line 51 of file Widget.php.

◆ renderInput()

renderInput (   $value,
  $raw,
  $attribs = null 
)
protected

Definition at line 63 of file Widget.php.

◆ renderMinimal()

renderMinimal (   $value,
  $raw 
)
protected

Definition at line 55 of file Widget.php.

◆ renderReadable()

renderReadable (   $value,
  $raw 
)
protected

Definition at line 72 of file Widget.php.

◆ renderWriteable()

renderWriteable (   $value,
  $raw 
)
protected

Definition at line 79 of file Widget.php.

Field Documentation

◆ $_displayNames

$_displayNames = []
protected

Definition at line 14 of file Widget.php.

◆ $_id

$_id = null
protected

Definition at line 7 of file Widget.php.

◆ $_inputType

$_inputType = 'text'
protected

Definition at line 12 of file Widget.php.

◆ $_name

$_name = null
protected

Definition at line 8 of file Widget.php.

◆ $_view

$_view = null
protected

Definition at line 9 of file Widget.php.

◆ $_widget

$_widget = null
protected

Definition at line 10 of file Widget.php.


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