code/libraries/joomlatools/library/object/config/factory.php
public function fromString($format, $config, $object = true)
    {
        $config = $this->createFormat($format)->fromString($config, $object);
        return $config;
    }
public function fromString($format, $config, $object = true)
    {
        $config = $this->createFormat($format)->fromString($config, $object);
        return $config;
    }
public function fromString ( $ format , $ config , $ object = true ) { $ config = $ this -> createFormat ( $ format ) -> fromString ( $ config , $ object ) ; return $ config ; }
Read a config from a string

@param  string  $format
@param  string  $config
@param  bool    $object  If TRUE return a ConfigObject, if FALSE return an array. Default TRUE.
@throws InvalidArgumentException
@throws RuntimeException
@return KObjectConfigInterface|array
Read a config from a string