Web string
It is derived from Formaid_PropertyString It has a value and a default value of the string type. It provides functionality to handle the value : - Set current value to a new value - Reset current value (make empty) - Set current value to default - Get value (read out) - Check if value is empty - property to indicate if string is HTML escaped
| category | Core |
|---|---|
| package | Formaid |
| author | Dieter Adriaenssens |
| copyright | 2006-2013 Dieter Adriaenssens |
| license | GPL |
| link | http://formaid.sourceforge.net/ |
__construct(string $property_name, string $current_value, string $default_value, bool $escaped, bool $defaultEscaped) : void
Defines current value and default value.
stringProperty name
stringCurrent value
stringDefault value
boolString is HTML escaped
boolDefault string is HTML escaped
disableTrimName() : void
| inherited_from | \Formaid_Object::disableTrimName() |
|---|---|
| inherited_from | \Formaid_Property::disableTrimName() |
| inherited_from | \Formaid_PropertyString::disableTrimName() |
display() : void
The name of the object is printed to stdout.
| inherited_from | \Formaid_Object::display() |
|---|---|
| inherited_from | \Formaid_Property::display() |
| inherited_from | \Formaid_PropertyString::display() |
enableTrimName() : void
| inherited_from | \Formaid_Object::enableTrimName() |
|---|---|
| inherited_from | \Formaid_Property::enableTrimName() |
| inherited_from | \Formaid_PropertyString::enableTrimName() |
getDisplaySeparator() : string
| inherited_from | \Formaid_Property::getDisplaySeparator() |
|---|---|
| inherited_from | \Formaid_PropertyString::getDisplaySeparator() |
stringString separating columnsgetDisplayString(bool $withValue, bool $discardEmptyValue) : string
| access | public |
|---|---|
| inherited_from | \Formaid_Property::getDisplayString() |
| inherited_from | \Formaid_PropertyString::getDisplayString() |
boolappend value to column (optional, default : true)
booldiscard columns with empty values (optional, default : false)
stringformatted object stringgetDisplayValue(bool $escape) : string
| access | public |
|---|
boolif the returned string should be escaped
stringformatted object valuegetName() : string
| inherited_from | \Formaid_Object::getName() |
|---|---|
| inherited_from | \Formaid_Property::getName() |
| inherited_from | \Formaid_PropertyString::getName() |
stringobject namegetValue() : string
| inherited_from | \Formaid_Property::getValue() |
|---|---|
| inherited_from | \Formaid_PropertyString::getValue() |
stringcurrent valueisEmpty() : bool
| inherited_from | \Formaid_Property::isEmpty() |
|---|---|
| inherited_from | \Formaid_PropertyString::isEmpty() |
booltrue if emptyisNameEmpty() : bool
| inherited_from | \Formaid_Object::isNameEmpty() |
|---|---|
| inherited_from | \Formaid_Property::isNameEmpty() |
| inherited_from | \Formaid_PropertyString::isNameEmpty() |
booltrue if emptyresetValue() : void
Empty current value
| inherited_from | \Formaid_Property::resetValue() |
|---|---|
| inherited_from | \Formaid_PropertyString::resetValue() |
setDefault(string $value, bool $escaped) : void
The value is cast to string. When the parameter is set, the default value is changed to the new default value. Then the current value is set to the (new) default value.
stringNew default value
boolString is HTML escaped
setName(string $new_name) : void
| inherited_from | \Formaid_Object::setName() |
|---|---|
| inherited_from | \Formaid_Property::setName() |
| inherited_from | \Formaid_PropertyString::setName() |
stringnew name
setValue(string $new_value, bool $escaped) : void
The value is cast to string.
stringNew value
boolString is HTML escaped
show() : void
The name of the object is printed to stdout.
| inherited_from | \Formaid_Object::show() |
|---|---|
| inherited_from | \Formaid_Property::show() |
| inherited_from | \Formaid_PropertyString::show() |
getDisplayName() : string
| inherited_from | \Formaid_Object::getDisplayName() |
|---|---|
| inherited_from | \Formaid_Property::getDisplayName() |
| inherited_from | \Formaid_PropertyString::getDisplayName() |
stringformatted object name$defaultEscaped
$var object Formaid_PropertyBool $access public
$escaped
$var object Formaid_PropertyBool $access public
$current_value : string
| access | protected |
|---|---|
| inherited_from | \Formaid_Property::$$current_value |
| inherited_from | \Formaid_PropertyString::$$current_value |
$default_value : string
| access | protected |
|---|---|
| inherited_from | \Formaid_Property::$$default_value |
| inherited_from | \Formaid_PropertyString::$$default_value |
$displaySeparator : string
| access | protected |
|---|---|
| inherited_from | \Formaid_Property::$$displaySeparator |
| inherited_from | \Formaid_PropertyString::$$displaySeparator |
$encoding : string
| access | protected |
|---|---|
| inherited_from | \Formaid_Object::$$encoding |
| inherited_from | \Formaid_Property::$$encoding |
| inherited_from | \Formaid_PropertyString::$$encoding |
$name : string
| access | protected |
|---|---|
| inherited_from | \Formaid_Object::$$name |
| inherited_from | \Formaid_Property::$$name |
| inherited_from | \Formaid_PropertyString::$$name |
$_trimName : bool
| access | private |
|---|---|
| inherited_from | \Formaid_Object::$$_trimName |
| inherited_from | \Formaid_Property::$$_trimName |
| inherited_from | \Formaid_PropertyString::$$_trimName |