Documentation
¶
Index ¶
- Constants
- Variables
- func GetClass(ctx phpv.Context, name phpv.ZString, autoload bool) (phpv.ZClass, error)
- func GetFunction(ctx phpv.Context, name phpv.ZString) (phpv.Callable, error)
- func New() phpv.IniConfig
- type Config
- func (c *Config) CanIniSet(name phpv.ZString) bool
- func (c *Config) EvalConfigValue(ctx phpv.Context, expr phpv.ZString) (*phpv.ZVal, error)
- func (c *Config) Get(varName phpv.ZString) *phpv.IniValue
- func (c *Config) IterateConfig() iter.Seq2[string, phpv.IniValue]
- func (c *Config) LoadDefaults(ctx phpv.Context)
- func (c *Config) Parse(ctx phpv.Context, r io.Reader) error
- func (c *Config) RestoreConfig(ctx phpv.Context, varName phpv.ZString)
- func (c *Config) SetGlobal(ctx phpv.Context, varName phpv.ZString, value *phpv.ZVal) *phpv.ZVal
- func (c *Config) SetLocal(ctx phpv.Context, varName phpv.ZString, value *phpv.ZVal) *phpv.ZVal
- type IniContext
- type IniDirective
Constants ¶
View Source
const ( INI_NONE = 0 INI_USER = 1 << iota INI_PERDIR INI_SYSTEM INI_ALL = INI_USER | INI_PERDIR | INI_SYSTEM )
Variables ¶
View Source
var Defaults = map[string]*IniDirective{}/* 390 elements not displayed */
Functions ¶
func GetFunction ¶
ideally, ini values will have a separate mini-compilers, but this will do for now
Types ¶
type Config ¶
func (*Config) EvalConfigValue ¶
func (*Config) LoadDefaults ¶
func (*Config) RestoreConfig ¶
type IniContext ¶
type IniContext struct {
phpv.GlobalContext
}
func (*IniContext) ConstantGet ¶
func (*IniContext) Global ¶
func (ic *IniContext) Global() phpv.GlobalContext
type IniDirective ¶
Click to show internal directories.
Click to hide internal directories.