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

Public Member Functions

 add ($prio, $message, $context)
 
- Public Member Functions inherited from File
 add ($prio, $message, $context)
 
 deleteNext ()
 Delete the file for the next period (when rotating logs). More...
 
- Public Member Functions inherited from Handler
 __construct ($log, $config, $name=null)
 
 add ($prio, $message, $context)
 
- 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

 $templateIndex
 Index template ([id] of item, [time], [prio], [name] of prio, and [message] are replaced). More...
 
- Data Fields inherited from File
 $format = null
 
 $dateTimeFormat = 'Y-m-d H:i:s'
 
 $separator = "\n*****\n\n"
 
 $maxSize = 102400
 
- 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

 value ($value)
 
 format ($prio, $context)
 
 getIndexFilename ()
 
- Protected Member Functions inherited from File
 format ($prio, $context)
 
 getFilename ()
 
- Protected Member Functions inherited from Handler
 init ()
 
- 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

 $_lastInsertId = null
 
- Protected Attributes inherited from File
 $_filename = null
 
 $_lastInsertTime = null
 
- Protected Attributes inherited from Handler
 $_log
 
 $_config = null
 
 $_name = 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

◆ add()

add (   $prio,
  $message,
  $context 
)

Definition at line 66 of file Html.php.

◆ format()

format (   $prio,
  $context 
)
protected

Definition at line 29 of file Html.php.

◆ getIndexFilename()

getIndexFilename ( )
protected

Definition at line 77 of file Html.php.

◆ value()

value (   $value)
protected

Definition at line 17 of file Html.php.

Field Documentation

◆ $_lastInsertId

$_lastInsertId = null
protected

Definition at line 15 of file Html.php.

◆ $templateIndex

$templateIndex
Initial value:
= "
<tr id='ix-[id]' class='prio[prio]'>
<td class='time'><a href='#[id]'>[time]</a></td>
<td class='prio'><a href='#[id]'>[name] ([prio])</a></td>
<td class='message'>[message]</td>
</tr>"

Index template ([id] of item, [time], [prio], [name] of prio, and [message] are replaced).

Definition at line 7 of file Html.php.


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