src/Service/DefaultValue.php
public function getBySlug($sSlug)
    {
        $aAvailable = $this->getAll();

        foreach ($aAvailable as $oDefault) {

            if ($oDefault->slug == $sSlug) {

                if (!isset($oDefault->instance)) {
                    $oDefault->instance = Factory::factory(
                        $oDefault->component,
                        $oDefault->provider
                    );
                }

                return $oDefault->instance;
            }
        }

        return null;
    }
public function getBySlug($sSlug)
    {
        $aAvailable = $this->getAll();

        foreach ($aAvailable as $oDefault) {

            if ($oDefault->slug == $sSlug) {

                if (!isset($oDefault->instance)) {
                    $oDefault->instance = Factory::factory(
                        $oDefault->component,
                        $oDefault->provider
                    );
                }

                return $oDefault->instance;
            }
        }

        return null;
    }
public function getBySlug ( $ sSlug ) { $ aAvailable = $ this -> getAll ( ) ; foreach ( $ aAvailable as $ oDefault ) { if ( $ oDefault -> slug == $ sSlug ) { if ( ! isset ( $ oDefault -> instance ) ) { $ oDefault -> instance = Factory :: factory ( $ oDefault -> component , $ oDefault -> provider ) ; } return $ oDefault -> instance ; } } return null ; }
Get an individual default value instance by it's slug

@param  string $sSlug The Default Value's slug

@return object
Get an individual default value instance by it s slug