FRED™  3.0
FRED™: Framework for Rapid and Easy Development
External Class Reference

External call wrapper. More...

Inheritance diagram for External:
Component Thing

Public Member Functions

 __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

 $countPeriod = 3600
 Default count period (seconds). More...
 
 $countMax = null
 Default maximum number of open calls in a period (empty = no maximum). More...
 
 $errorPeriod = 3600
 Default error period (seconds). More...
 
 $errorMax = 10
 Default maximum number of errors in a period. More...
 
 $functions = []
 Function (key) specific configurations (array). More...
 
 $logPrio = Log::INFO
 Prio for call results. More...
 
- 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

 filename ($func_name, $type, $period)
 
 inc ($func_name, $type, $period)
 
 count ($func_name, $type, $period)
 
 garbage ()
 
- 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...
 
 alias ($alias, $property, $object=null)
 Define an alias for a property (of another object). 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

 $_path = null
 
 $_ext = '.cnt'
 
 $_garbageChance = 100
 
- 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...
 
 $_aliases = []
 Alias properties (key = alias, value = [object,property]). More...
 

Detailed Description

External call wrapper.

Definition at line 8 of file External.php.

Member Function Documentation

◆ __call()

__call (   $func_name,
  $params 
)

Definition at line 42 of file External.php.

◆ count()

count (   $func_name,
  $type,
  $period 
)
protected

Definition at line 29 of file External.php.

◆ filename()

filename (   $func_name,
  $type,
  $period 
)
protected

Definition at line 21 of file External.php.

◆ garbage()

garbage ( )
protected

Definition at line 33 of file External.php.

◆ inc()

inc (   $func_name,
  $type,
  $period 
)
protected

Definition at line 25 of file External.php.

Field Documentation

◆ $_ext

$_ext = '.cnt'
protected

Definition at line 18 of file External.php.

◆ $_garbageChance

$_garbageChance = 100
protected

Definition at line 19 of file External.php.

◆ $_path

$_path = null
protected

Definition at line 17 of file External.php.

◆ $countMax

$countMax = null

Default maximum number of open calls in a period (empty = no maximum).

Definition at line 11 of file External.php.

◆ $countPeriod

$countPeriod = 3600

Default count period (seconds).

Definition at line 10 of file External.php.

◆ $errorMax

$errorMax = 10

Default maximum number of errors in a period.

Definition at line 13 of file External.php.

◆ $errorPeriod

$errorPeriod = 3600

Default error period (seconds).

Definition at line 12 of file External.php.

◆ $functions

$functions = []

Function (key) specific configurations (array).

Definition at line 14 of file External.php.

◆ $logPrio

$logPrio = Log::INFO

Prio for call results.

Definition at line 15 of file External.php.


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