Interface IComponent (namespace Nette)


Provides functionality required by all components.


Direct Known Sub-interfaces:

Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /IComponent.php (line 30)
Public Method Summary
string
getName ()
IComponentContainer|NULL
Returns the container if any.
IServiceLocator
Gets the service locator (EXPERIMENTAL).
void
setParent ([IComponentContainer $parent = NULL], [string $name = NULL])
Sets the parent of this component.
void
Sets the service location (EXPERIMENTAL).
Constant Summary
string NAME_SEPARATOR '-'

line 33

Separator for component names in path concatenation.

Method Details

line 38

getName

public string getName ()

line 44

getParent

public IComponentContainer|NULL getParent ()

Returns the container if any.

line 65

getServiceLocator

public IServiceLocator getServiceLocator ()

Gets the service locator (EXPERIMENTAL).

line 52

setParent

public void setParent ([IComponentContainer $parent = NULL], [string $name = NULL])

Sets the parent of this component.

Input
IComponentContainer $parent
string $name

line 59

setServiceLocator

public void setServiceLocator (IServiceLocator $locator)

Sets the service location (EXPERIMENTAL).

Input
IServiceLocator $locator