public function toArray($type = self::CONFIG_ALL)
    {
        $this->guardConfigSlot($type);

        return $this->config[$type];
    }
public function toArray($type = self::CONFIG_ALL)
    {
        $this->guardConfigSlot($type);

        return $this->config[$type];
    }
public function toArray ( $ type = self :: CONFIG_ALL ) { $ this -> guardConfigSlot ( $ type ) ; return $ this -> config [ $ type ] ; }
Get the configuration is as array.

@param string $type Either Config::CONFIG_SYSTEM Config::CONFIG_LOCAL
or Config::CONFIG_ALL

@return array
Get the configuration is as array .