return $this->content;
}
+ /**
+ * Public setter for extra instance
+ *
+ * @param $extraInstance An extra instance of FrameworkInterface to set
+ * @return void
+ */
+ public final function setExtraInstance (FrameworkInterface $extraInstance) {
+ $this->extraInstance = $extraInstance;
+ }
+
/**
* Assigns a field from the value instance with a template variable
*
// Get the field value
$fieldValue = $this->getValueInstance()->getField($fieldName);
- //* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput($fieldName.'[]='.gettype($fieldValue).'('.strlen($fieldValue).')');
+ //* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput($fieldName.'[]='.gettype($fieldValue).'('.strlen($fieldValue).') - BEFORE!');
// Is it null?
if ((is_null($fieldValue)) && (!is_null($this->extraInstance))) {
// So try the extra instance
$fieldValue = $this->extraInstance->getField($fieldName);
} // END - if
+ //* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput($fieldName.'[]='.gettype($fieldValue).'('.strlen($fieldValue).') - AFTER!');
// Return it
return $fieldValue;