Koowa_Service
[ class tree: Koowa_Service ] [ index: Koowa_Service ] [ all elements ]

Class: KServiceLocatorComponent

Source Location: /libraries/koowa/service/locator/component.php

Class Overview

KObject
   |
   --KServiceLocatorAbstract
      |
      --KServiceLocatorComponent

Locator Adapter for a component


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: KServiceLocatorAbstract

KServiceLocatorAbstract::getType()
Get the type

Class: KObject

KObject::__construct()
Constructor
KObject::get()
Get the object properties
KObject::getHandle()
Get a handle for this object
KObject::getIdentifier()
Gets the service identifier.
KObject::getMethods()
Get a list of all the available methods
KObject::getService()
Get an instance of a class based on a class identifier only creating it if it does not exist yet.
KObject::inherits()
Checks if the object or one of it's mixin's inherits from a class.
KObject::mixin()
Mixin an object
KObject::set()
Set the object properties
KObject::_initialize()
Initializes the options for the object
KObject::__call()
Search the mixin method map and call the method or trigger an error
KObject::__clone()
Preform a deep clone of the object.

Class Details

[line 17]
Locator Adapter for a component



Tags:

author:  Johan Janssens <johan@nooku.org>


[ Top ]


Class Variables

$_type =  'com'

[line 24]

The type



Tags:

access:  protected

Type:   string
Overrides:   Array


[ Top ]



Class Methods


method findClass [line 42]

string|false findClass( KServiceIdentifier $identifier)

Get the classname based on an identifier

This locator will try to create an generic or default classname on the identifier information if the actual class cannot be found using a predefined fallback sequence.

Fallback sequence : -> Named Component Specific -> Named Component Default -> Default Component Specific -> Default Component Default -> Framework Specific -> Framework Default




Tags:

return:  Return object on success, returns FALSE on failure
access:  public


Parameters:

mixed   $identifier   An identifier object - com:[//application/]component.view.[.path].name

[ Top ]

method findPath [line 92]

string findPath( KServiceIdentifier $identifier)

Get the path based on an identifier



Tags:

return:  Returns the path
access:  public


Parameters:

object An   $identifier   identifier object - com:[//application/]component.view.[.path].name

[ Top ]


Documentation generated on Sat, 25 May 2013 03:01:05 +0200 by phpDocumentor 1.4.3