Privilege class.
This class provides functionality to handle privileges
Methods
Constructor, initialises an instance of Privilege class
__construct(string $property_name, bool $current_value, bool $default_value) : void
Defines current value and default value.
Parameters
$property_name
string
Property name
$current_value
bool
Current value
$default_value
bool
Default value
Disables trimming whitespace of object name
disableTrimName() : void
Inherited
inherited_from |
\Formaid_Object::disableTrimName() |
inherited_from |
\Formaid_Property::disableTrimName() |
inherited_from |
\Formaid_PropertyBool::disableTrimName() |
Display object
display() : void
Inherited
The name of the object is printed to stdout.
inherited_from |
\Formaid_Object::display() |
inherited_from |
\Formaid_Property::display() |
inherited_from |
\Formaid_PropertyBool::display() |
Enables trimming whitespace of object name
enableTrimName() : void
Inherited
inherited_from |
\Formaid_Object::enableTrimName() |
inherited_from |
\Formaid_Property::enableTrimName() |
inherited_from |
\Formaid_PropertyBool::enableTrimName() |
Get display seperator
getDisplaySeparator() : string
Inherited
inherited_from |
\Formaid_Property::getDisplaySeparator() |
inherited_from |
\Formaid_PropertyBool::getDisplaySeparator() |
Returns
string
String separating columns
return Display string
getDisplayString(bool $withValue, bool $discardEmptyValue) : string
Inherited
access |
public |
inherited_from |
\Formaid_Property::getDisplayString() |
inherited_from |
\Formaid_PropertyBool::getDisplayString() |
Parameters
$withValue
bool
append value to column
(optional, default : true)
$discardEmptyValue
bool
discard columns with empty values
(optional, default : false)
Returns
string
formatted object string
Returns name of the object
getName() : string
Inherited
inherited_from |
\Formaid_Object::getName() |
inherited_from |
\Formaid_Property::getName() |
inherited_from |
\Formaid_PropertyBool::getName() |
Returns
string
object name
Returns current value
getValue() : string
Inherited
inherited_from |
\Formaid_Property::getValue() |
inherited_from |
\Formaid_PropertyBool::getValue() |
Returns
string
current value
Checks if current value is empty
isEmpty() : bool
Inherited
inherited_from |
\Formaid_Property::isEmpty() |
inherited_from |
\Formaid_PropertyBool::isEmpty() |
Returns
bool
true if empty
Checks if object name is empty
isNameEmpty() : bool
Inherited
inherited_from |
\Formaid_Object::isNameEmpty() |
inherited_from |
\Formaid_Property::isNameEmpty() |
inherited_from |
\Formaid_PropertyBool::isNameEmpty() |
Returns
bool
true if empty
Resets current value
resetValue() : void
Inherited
The current value is set to false.
inherited_from |
\Formaid_PropertyBool::resetValue() |
Sets current value to default
setDefault(bool $value) : void
Inherited
The value is cast to boolean.
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.
inherited_from |
\Formaid_PropertyBool::setDefault() |
Parameters
$value
bool
New default value
Sets new name for the object
setName(string $new_name) : void
Inherited
inherited_from |
\Formaid_Object::setName() |
inherited_from |
\Formaid_Property::setName() |
inherited_from |
\Formaid_PropertyBool::setName() |
Parameters
Sets current value
setValue(bool $new_value) : void
Inherited
The current value is set to a $new_value, default is true.
inherited_from |
\Formaid_PropertyBool::setValue() |
Parameters
$new_value
bool
new value (default : true)
Show object
show() : void
Inherited
The name of the object is printed to stdout.
inherited_from |
\Formaid_Object::show() |
inherited_from |
\Formaid_Property::show() |
inherited_from |
\Formaid_PropertyBool::show() |
Returns name formatted for displaying
getDisplayName() : string
Inherited
inherited_from |
\Formaid_Object::getDisplayName() |
inherited_from |
\Formaid_Property::getDisplayName() |
inherited_from |
\Formaid_PropertyBool::getDisplayName() |
Returns
string
formatted object name
Returns value formatted for displaying
getDisplayValue() : string
Inherited
access |
protected |
inherited_from |
\Formaid_Property::getDisplayValue() |
inherited_from |
\Formaid_PropertyBool::getDisplayValue() |
Returns
string
formatted object value
Properties
$current_value : string
Inherited
access |
protected |
inherited_from |
\Formaid_Property::$$current_value |
inherited_from |
\Formaid_PropertyBool::$$current_value |
$default_value : string
Inherited
access |
protected |
inherited_from |
\Formaid_Property::$$default_value |
inherited_from |
\Formaid_PropertyBool::$$default_value |
$displaySeparator : string
Inherited
access |
protected |
inherited_from |
\Formaid_Property::$$displaySeparator |
inherited_from |
\Formaid_PropertyBool::$$displaySeparator |
$encoding : string
Inherited
access |
protected |
inherited_from |
\Formaid_Object::$$encoding |
inherited_from |
\Formaid_Property::$$encoding |
inherited_from |
\Formaid_PropertyBool::$$encoding |
$name : string
Inherited
access |
protected |
inherited_from |
\Formaid_Object::$$name |
inherited_from |
\Formaid_Property::$$name |
inherited_from |
\Formaid_PropertyBool::$$name |
$_trimName : bool
Inherited
access |
private |
inherited_from |
\Formaid_Object::$$_trimName |
inherited_from |
\Formaid_Property::$$_trimName |
inherited_from |
\Formaid_PropertyBool::$$_trimName |