FRED™  3.0
FRED™: Framework for Rapid and Easy Development
Services Class Reference
Inheritance diagram for Services:
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)
 

Protected Member Functions

 endpointParam ($key, $default=null)
 
 getEndpoint ()
 
 getResponse ()
 
- 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...
 

Protected Attributes

 $_endpointKey = 'services-endpoint'
 Key for the last successful endpoint URL in the cache. More...
 
 $_endpointTtl = 86400
 Default TTL for the endpoint URL to be stored in the cache. More...
 
 $_endpoints = ['' => []]
 Available endpoints (key = URL, value = params: username, password, timeout, ttl =. More...
 
 $_endpointUrl = null
 
 $_endpoint = null
 
- 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...
 

Additional Inherited Members

- 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...
 

Detailed Description

Definition at line 5 of file Services.php.

Member Function Documentation

◆ __call()

__call (   $func_name,
  $params 
)

Definition at line 40 of file Services.php.

◆ endpointParam()

endpointParam (   $key,
  $default = null 
)
protected

Definition at line 15 of file Services.php.

◆ getEndpoint()

getEndpoint ( )
protected

Definition at line 19 of file Services.php.

◆ getResponse()

getResponse ( )
protected

Definition at line 36 of file Services.php.

Field Documentation

◆ $_endpoint

$_endpoint = null
protected

Definition at line 13 of file Services.php.

◆ $_endpointKey

$_endpointKey = 'services-endpoint'
protected

Key for the last successful endpoint URL in the cache.

Definition at line 7 of file Services.php.

◆ $_endpoints

$_endpoints = ['' => []]
protected

Available endpoints (key = URL, value = params: username, password, timeout, ttl =.

Definition at line 9 of file Services.php.

◆ $_endpointTtl

$_endpointTtl = 86400
protected

Default TTL for the endpoint URL to be stored in the cache.

Definition at line 8 of file Services.php.

◆ $_endpointUrl

$_endpointUrl = null
protected

Definition at line 12 of file Services.php.


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