nyroFwk  0.2
Public Member Functions | Protected Member Functions | Protected Attributes
object Class Reference
Inheritance diagram for object:
cache_abstract db_abstract db_row db_rowset db_table db_where db_whereClause form form_abstract form_fileUploaded helper_akismet helper_bitLy helper_dataTable helper_date helper_email helper_file helper_filterTable http_cookie module_abstract response_abstract response_proxy security_abstract session_abstract tpl valid

Public Member Functions

 __construct (config $cfg)
 
 getAttr ($name)
 
 setAttr ($name, $value)
 
 getCfg ()
 

Protected Member Functions

 beforeInit ()
 
 afterInit ()
 

Protected Attributes

 $cfg
 

Detailed Description

Every class extends of this class

Definition at line 10 of file object.class.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( config  $cfg)
final

Will call beforeInit, initilize the configuration with initCfg and call afterInit. You can overload these 3 functions on your subclasses.

Parameters
config$cfgThe initial configuration

Definition at line 25 of file object.class.php.

Member Function Documentation

◆ afterInit()

afterInit ( )
protected

Call just after the configuration initialisation

Definition at line 40 of file object.class.php.

◆ beforeInit()

beforeInit ( )
protected

Call just before the configuration initialisation

Definition at line 35 of file object.class.php.

◆ getAttr()

getAttr (   $name)

Get an attribute

Parameters
string$nameAttribute name
Returns
mixed|null The attribute or null if not set

Definition at line 48 of file object.class.php.

◆ getCfg()

getCfg ( )

Get the configuration object

Returns
config

Definition at line 67 of file object.class.php.

◆ setAttr()

setAttr (   $name,
  $value 
)

Set an attribute

Parameters
string$nameAttribute name
mixed$valueAttribute value

Definition at line 58 of file object.class.php.

Field Documentation

◆ $cfg

$cfg
protected

Definition at line 17 of file object.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Oct 15 2017 22:25:21 for nyroFwk by doxygen 1.8.13