*/
public function isStateValid ($stateName) {
// By default nothing shall be valid
- $isValid = false;
+ $isValid = FALSE;
// Is a state set?
if (empty($stateName)) {
$this->setClassName($className);
// Try it hard to get an state
- while ($isValid === false) {
+ while ($isValid === FALSE) {
// Is this class already loaded?
if (class_exists($this->getClassName())) {
// This class does exist. :-)
- $isValid = true;
+ $isValid = TRUE;
} elseif ($this->getClassName() != $this->statePrefix . 'DefaultState') {
// Set default state
$this->setClassName($this->statePrefix . 'DefaultState');