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

Source for file serviceable.php

Documentation is available at serviceable.php

  1. <?php
  2. /**
  3.  * @version     $Id: serviceable.php 4643 2012-05-13 21:02:33Z johanjanssens $
  4.  * @package     Koowa_Object
  5.  * @copyright   Copyright (C) 2007 - 2012 Johan Janssens. All rights reserved.
  6.  * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
  7.  */
  8.  
  9. /**
  10.  * Object Serviceable Interface
  11.  *
  12.  * @author      Johan Janssens <johan@nooku.org>
  13.  * @package     Koowa_Object
  14.  */
  15. {
  16.     /**
  17.      * Get an instance of a class based on a class identifier only creating it
  18.      * if it doesn't exist yet.
  19.      *
  20.      * @param    string|object     $identifier The class identifier or identifier object
  21.      * @param    array              $config     An optional associative array of configuration settings.
  22.      * @throws    KObjectException
  23.      * @return    object          Return object on success, throws exception on failure
  24.      */
  25.     public function getService($identifierarray $config array());
  26.  
  27.     /**
  28.      * Get a service identifier.
  29.      *
  30.      * @param    string|object     $identifier The class identifier or identifier object
  31.      * @return    KServiceIdentifier 
  32.      */
  33.     public function getIdentifier($identifier null);
  34. }

Documentation generated on Sat, 18 May 2013 03:06:35 +0200 by phpDocumentor 1.4.3