C# Класс PHP.Core.GlobalConfiguration.SafeModeSection

Наследование: IPhpConfigurationSection
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
AllowedPathPrefixes string[]
Enabled bool
ExecutionDirectory string

Открытые методы

Метод Описание
GetAllowedPathPrefixesJoin ( ) : string
IsPathAllowed ( string path ) : bool

Checks whether a path is allowed to be used by the script.

Parse ( string name, string value, XmlNode node ) : bool

Loads configuration from XML node.

Приватные методы

Метод Описание
DeepCopy ( ) : SafeModeSection

Описание методов

GetAllowedPathPrefixesJoin() публичный Метод

public GetAllowedPathPrefixesJoin ( ) : string
Результат string

IsPathAllowed() публичный Метод

Checks whether a path is allowed to be used by the script.
si a null reference.
public IsPathAllowed ( string path ) : bool
path string The non-empty path to be checked.
Результат bool

Parse() публичный Метод

Loads configuration from XML node.
public Parse ( string name, string value, XmlNode node ) : bool
name string
value string
node System.Xml.XmlNode
Результат bool

Описание свойств

AllowedPathPrefixes публичное свойство

List of directory path prefixes where file system functions can open files. A null reference mean all paths are allowed. Not affected by value of Enabled.
public string[] AllowedPathPrefixes
Результат string[]

Enabled публичное свойство

Whether safe mode is enabled.
public bool Enabled
Результат bool

ExecutionDirectory публичное свойство

Directory where programs to be executed are searched in. Applies only if Enabled is true.
public string ExecutionDirectory
Результат string