FRED™  3.0
FRED™: Framework for Rapid and Easy Development
Html Class Reference
Inheritance diagram for Html:
Component Thing

Public Member Functions

 tag ($tag, $content=null, $attribs=null)
 
 a ($content, $attribs=null, $href=null)
 
 datalist ($content, $attribs=null, $id=null)
 
 div ($content, $attribs=null, $class=null, $id=null)
 
 form ($content, $attribs=null, $action=null, $method='post', $enctype='multipart/form-data')
 
 img ($content, $attribs=null, $alt=null)
 
 input ($content, $attribs=null, $type=null, $name=null, $options=null)
 
 meta ($content, $attribs=null, $name)
 
 script ($content, $attribs=null, $srcs=null, $type='text/javascript')
 
 select ($content, $attribs=null, $value=null, $assoc=null, $name=null)
 
 span ($content, $attribs=null, $class=null, $id=null)
 
 style ($content, $attribs=null, $srcs=null, $type='text/css')
 
 textarea ($content, $attribs=null, $name=null)
 
 th ($content, $attribs=null, $scope='col')
 
 __call ($func_name, $params)
 
- Public Member Functions inherited from Component
 __construct ($fred, $config=null)
 
 __destruct ()
 
 clientConfig ()
 Public configuration. More...
 
 config ($key, $default=null)
 Retrieve a config value. More...
 
 ping ()
 Ping function. More...
 
 filemtime ($filename)
 Filemtime with session cache. More...
 
 component ($name)
 Get a component (local or default). More...
 
 components (... $names)
 Get multiple components in an array. More...
 
- 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)
 

Data Fields

 $escape = false
 
 $break = null
 
 $backgroundHeightMin = 0
 
 $backgroundHeightMax = 100
 
 $backgroundHeightStep = 10
 
 $backgroundWidthMin = 10
 
 $backgroundWidthMax = 90
 
 $backgroundWidthStep = 5
 
- Data Fields inherited from Component
 $filemtimeTtl = 0
 
- 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...
 

Protected Member Functions

 options ($content, $value, $assoc)
 
- Protected Member Functions inherited from Component
 init ()
 
 done ()
 
 getSession ()
 
- 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...
 

Additional Inherited Members

- Protected Attributes inherited from Component
 $_fred = null
 
 $_config = null
 
 $_name = null
 
 $_components = []
 Local components (key = component name, value = component). More...
 
 $_session = null
 
- Protected Attributes inherited from Thing
 $_published = []
 Published properties (key = name of property, value = visibility). More...
 

Detailed Description

Definition at line 5 of file Html.php.

Member Function Documentation

◆ __call()

__call (   $func_name,
  $params 
)

Definition at line 170 of file Html.php.

◆ a()

a (   $content,
  $attribs = null,
  $href = null 
)

Definition at line 46 of file Html.php.

◆ datalist()

datalist (   $content,
  $attribs = null,
  $id = null 
)

Definition at line 50 of file Html.php.

◆ div()

div (   $content,
  $attribs = null,
  $class = null,
  $id = null 
)

Definition at line 54 of file Html.php.

◆ form()

form (   $content,
  $attribs = null,
  $action = null,
  $method = 'post',
  $enctype = 'multipart/form-data' 
)

Definition at line 58 of file Html.php.

◆ img()

img (   $content,
  $attribs = null,
  $alt = null 
)

Definition at line 62 of file Html.php.

◆ input()

input (   $content,
  $attribs = null,
  $type = null,
  $name = null,
  $options = null 
)

Definition at line 112 of file Html.php.

◆ meta()

meta (   $content,
  $attribs = null,
  $name 
)

Definition at line 134 of file Html.php.

◆ options()

options (   $content,
  $value,
  $assoc 
)
protected

Definition at line 16 of file Html.php.

◆ script()

script (   $content,
  $attribs = null,
  $srcs = null,
  $type = 'text/javascript' 
)

Definition at line 138 of file Html.php.

◆ select()

select (   $content,
  $attribs = null,
  $value = null,
  $assoc = null,
  $name = null 
)

Definition at line 146 of file Html.php.

◆ span()

span (   $content,
  $attribs = null,
  $class = null,
  $id = null 
)

Definition at line 150 of file Html.php.

◆ style()

style (   $content,
  $attribs = null,
  $srcs = null,
  $type = 'text/css' 
)

Definition at line 154 of file Html.php.

◆ tag()

tag (   $tag,
  $content = null,
  $attribs = null 
)

Definition at line 35 of file Html.php.

◆ textarea()

textarea (   $content,
  $attribs = null,
  $name = null 
)

Definition at line 162 of file Html.php.

◆ th()

th (   $content,
  $attribs = null,
  $scope = 'col' 
)

Definition at line 166 of file Html.php.

Field Documentation

◆ $backgroundHeightMax

$backgroundHeightMax = 100

Definition at line 10 of file Html.php.

◆ $backgroundHeightMin

$backgroundHeightMin = 0

Definition at line 9 of file Html.php.

◆ $backgroundHeightStep

$backgroundHeightStep = 10

Definition at line 11 of file Html.php.

◆ $backgroundWidthMax

$backgroundWidthMax = 90

Definition at line 13 of file Html.php.

◆ $backgroundWidthMin

$backgroundWidthMin = 10

Definition at line 12 of file Html.php.

◆ $backgroundWidthStep

$backgroundWidthStep = 5

Definition at line 14 of file Html.php.

◆ $break

$break = null

Definition at line 8 of file Html.php.

◆ $escape

$escape = false

Definition at line 7 of file Html.php.


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