*/
public function assignField ($fieldName) {
// Get the value from value instance
- $fieldValue = $this->getField($fieldName);
+ $fieldValue = $this->getValueField($fieldName);
// Assign it with a template variable
$this->getTemplateInstance()->assignVariable("block_" . $fieldName, $fieldValue);
*/
public function assignFieldWithFilter ($fieldName, $filterMethod) {
// Get the value
- $fieldValue = $this->getField($fieldName);
+ $fieldValue = $this->getValueField($fieldName);
// Now filter it through the value through the filter method
$filteredValue = call_user_func_array(array($this, "doFilter" . ucfirst($filterMethod)), array($fieldValue));
* @param $fieldName Name of the field we shall fetch
* @return $fieldValue Value from field
*/
- public function getField ($fieldName) {
+ public function getValueField ($fieldName) {
// Get the field value
$fieldValue = call_user_func_array(array($this->valueInstance, 'getField'), array($fieldName));
* @return $isUnconfirmed Wether the user account is unconfirmed
*/
public function ifUserAccountUnconfirmed () {
- $isUnconfirmed = ($this->getField('user_status') === $this->getConfigInstance()->readConfig('user_status_unconfirmed'));
+ $isUnconfirmed = ($this->getValueField('user_status') === $this->getConfigInstance()->readConfig('user_status_unconfirmed'));
return $isUnconfirmed;
}
* @return $isUnconfirmed Wether the user account is locked
*/
public function ifUserAccountLocked () {
- $isUnconfirmed = ($this->getField('user_status') === $this->getConfigInstance()->readConfig('user_status_locked'));
+ $isUnconfirmed = ($this->getValueField('user_status') === $this->getConfigInstance()->readConfig('user_status_locked'));
return $isUnconfirmed;
}
* @return $isUnconfirmed Wether the user account is a guest
*/
public function ifUserAccountGuest () {
- $isUnconfirmed = ($this->getField('user_status') === $this->getConfigInstance()->readConfig('user_status_guest'));
+ $isUnconfirmed = ($this->getValueField('user_status') === $this->getConfigInstance()->readConfig('user_status_guest'));
return $isUnconfirmed;
}
}
*/
public function addInputTextFieldWithDefault ($fieldName) {
// Get the value from instance
- $fieldValue = $this->getField($fieldName);
+ $fieldValue = $this->getValueField($fieldName);
//* DEBUG: */ echo __METHOD__.":".$fieldName."=".$fieldValue."<br />\n";
// Add the text field
*/
public function addInputHiddenFieldWithDefault ($fieldName) {
// Get the value from instance
- $fieldValue = $this->getField($fieldName);
+ $fieldValue = $this->getValueField($fieldName);
//* DEBUG: */ echo __METHOD__.":".$fieldName."=".$fieldValue."<br />\n";
// Add the text field