public static function getChildComponentClass($class, $generator, $componentKey = null)
    {
        $constraints = array(
            'generator' => $generator,
        );
        if ($componentKey) $constraints['componentKey'] = $componentKey;
        $classes = array_values(self::getChildComponentClasses($class, $constraints));
        if (!isset($classes[0])) {
            if (!$componentKey) {
                throw new Kwf_Exception("no component for generator '$generator' not set for '$class'");
            } else {
                throw new Kwf_Exception("childComponentClass '$componentKey' for generator '$generator' not set for '$class'");
            }
        }
        return $classes[0];
    }
public static function getChildComponentClass($class, $generator, $componentKey = null)
    {
        $constraints = array(
            'generator' => $generator,
        );
        if ($componentKey) $constraints['componentKey'] = $componentKey;
        $classes = array_values(self::getChildComponentClasses($class, $constraints));
        if (!isset($classes[0])) {
            if (!$componentKey) {
                throw new Kwf_Exception("no component for generator '$generator' not set for '$class'");
            } else {
                throw new Kwf_Exception("childComponentClass '$componentKey' for generator '$generator' not set for '$class'");
            }
        }
        return $classes[0];
    }
public static function getChildComponentClass ( $ class , $ generator , $ componentKey = null ) { $ constraints = array ( 'generator' => $ generator , ) ; if ( $ componentKey ) $ constraints [ 'componentKey' ] = $ componentKey ; $ classes = array_values ( self :: getChildComponentClasses ( $ class , $ constraints ) ) ; if ( ! isset ( $ classes [ 0 ] ) ) { if ( ! $ componentKey ) { throw new Kwf_Exception ( "no component for generator '$generator' not set for '$class'" ) ; } else { throw new Kwf_Exception ( "childComponentClass '$componentKey' for generator '$generator' not set for '$class'" ) ; } } return $ classes [ 0 ] ; }
Returns a single child component class of a componentClass

throws an exception if not found

@param string componentClass
@param string generator key
@param string component key
@param string
Returns a single child component class of a componentClass