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

Public Member Functions

 clientConfig ()
 
 formatDate ($value)
 
 convertDate ($value)
 
 formatTime ($value)
 
 convertTime ($value)
 
 formatDateTime ($value)
 
 convertDateTime ($value)
 
 formatInt ($value)
 
 convertInt ($value)
 
 formatNumber ($value, $decimals=0, $trim=null, $zero=null)
 
 convertNumber ($value, $decimals=0)
 
 formatSpellOut ($value, $locale=null, $format=null)
 
 formatRoman ($value)
 
 formatBytes ($value, $decimals=1)
 
 convertBytes ($value)
 
- 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

 $dateFormat = 'd-m-Y'
 
 $timeFormat = 'G:i'
 
 $dateTimeFormat = '[date], [time]'
 
 $decimalPoint = ','
 
 $thousandsSeparator = '.'
 
 $delimiter = ';'
 
- 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

 init ()
 
- 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 Local.php.

Member Function Documentation

◆ clientConfig()

clientConfig ( )

Definition at line 20 of file Local.php.

◆ convertBytes()

convertBytes (   $value)

Definition at line 95 of file Local.php.

◆ convertDate()

convertDate (   $value)

Definition at line 37 of file Local.php.

◆ convertDateTime()

convertDateTime (   $value)

Definition at line 57 of file Local.php.

◆ convertInt()

convertInt (   $value)

Definition at line 66 of file Local.php.

◆ convertNumber()

convertNumber (   $value,
  $decimals = 0 
)

Definition at line 79 of file Local.php.

◆ convertTime()

convertTime (   $value)

Definition at line 47 of file Local.php.

◆ formatBytes()

formatBytes (   $value,
  $decimals = 1 
)

Definition at line 91 of file Local.php.

◆ formatDate()

formatDate (   $value)

Definition at line 31 of file Local.php.

◆ formatDateTime()

formatDateTime (   $value)

Definition at line 51 of file Local.php.

◆ formatInt()

formatInt (   $value)

Definition at line 61 of file Local.php.

◆ formatNumber()

formatNumber (   $value,
  $decimals = 0,
  $trim = null,
  $zero = null 
)

Definition at line 70 of file Local.php.

◆ formatRoman()

formatRoman (   $value)

Definition at line 87 of file Local.php.

◆ formatSpellOut()

formatSpellOut (   $value,
  $locale = null,
  $format = null 
)

Definition at line 83 of file Local.php.

◆ formatTime()

formatTime (   $value)

Definition at line 41 of file Local.php.

◆ init()

init ( )
protected

Definition at line 15 of file Local.php.

Field Documentation

◆ $dateFormat

$dateFormat = 'd-m-Y'

Definition at line 7 of file Local.php.

◆ $dateTimeFormat

$dateTimeFormat = '[date], [time]'

Definition at line 9 of file Local.php.

◆ $decimalPoint

$decimalPoint = ','

Definition at line 11 of file Local.php.

◆ $delimiter

$delimiter = ';'

Definition at line 13 of file Local.php.

◆ $thousandsSeparator

$thousandsSeparator = '.'

Definition at line 12 of file Local.php.

◆ $timeFormat

$timeFormat = 'G:i'

Definition at line 8 of file Local.php.


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