Class jClassBinding

Description

Services binding for jelix

Located in /utils/jClassBinding.class.php (line 21)


	
			
Variable Summary
Method Summary
string getClassName ()
mixed getInstance ([ $singleton = true])
jClassBinding to (string $toselector)
jClassBinding toInstance (mixed $instance)
mixed _createInstance ()
string _getClassSelector ()
Variables
jSelectorIface|jSelectorClass $fromSelector = null (line 25)
  • var: Called selector
  • access: protected
mixed $instance = null (line 35)

resulting binded instance

  • access: protected
mixed $toSelector = null (line 30)

selector to the binded class (string form)

  • access: protected
Methods
Constructor __construct (line 42)

__constructor

  • access: public
void __construct (jSelectorIface|jSelectorClass $selector)
getClassName (line 104)

Get the name of the binded class without creating this class

  • access: public
string getClassName ()
getInstance (line 78)

Get the binded instance

  • access: public
mixed getInstance ([ $singleton = true])
  • $singleton
to (line 54)

Bind the selector to the class specified Even if this instance is already defined (BE CAREFUL !!! singleton is bypassed)

  • access: public
jClassBinding to (string $toselector)
  • string $toselector
toInstance (line 67)

Bind the selector to the specified instance Even if this instance is already defined (BE CAREFUL !!! singleton is bypassed)

  • access: public
jClassBinding toInstance (mixed $instance)
  • mixed $instance
_createInstance (line 91)

Create the binded selector if not initialzed yet

  • access: protected
mixed _createInstance ()
_getClassSelector (line 120)

Get the selector to the binded class Protected because this does not work if called after a simple __construct() and a toInstance()

  • access: protected
string _getClassSelector ()

Documentation generated on Mon, 26 Oct 2015 21:51:58 +0100 by phpDocumentor 1.4.3