Constructor
mosParameters
mosParameters
(string $text, [string $process_sections = false])
-
string
$text: The raw parms text
-
string
$process_sections: Path to the xml setup file
Sets a default value if not alreay assigned
string
def
(string $key, [string $value = ''])
-
string
$key: The name of the param
-
string
$value: The value of the parameter
string
get
(string $key, [mixed $default = ''])
-
string
$key: The name of the param
-
mixed
$default: The default value if not found
Look to see if string is bracketed by opener and closer
If so, extract and trim the bracketed string Otherwise, return a null string
void
getBracketed
( $text, $opener, $closer)
Get the result of parsing the string provided on creation
string
getParams
()
Parse an .ini string, based on phpDocumentor phpDocumentor_parse_ini_file function
object
parse
(mixed $txt, [boolean $process_sections = false])
-
mixed
$txt: The ini string or array of lines
-
boolean
$process_sections: add an associative index for each section [in brackets]
string
render
([string $name = 'params'])
-
string
$name: The name of the control, or the default text area if a setup file is not found
string
set
(string $key, [string $value = ''])
-
string
$key: The name of the param
-
string
$value: The value of the parameter
special handling for textarea param
void
textareaHandling
( &$txt)