Esempio n. 1
0
 /**
  * Return the value of the field
  *
  * @return mixed: the value of the field
  * @access public
  * @author Thomas Branius
  * @since 16-03-2010
  */
 function getValue()
 {
     $sValue = parent::getValue();
     if (preg_match($this->_sValParseRegExpr, $sValue)) {
         return $sValue;
     }
     if ($this->_bParseOtherPresentations) {
         $sValue = $this->parseOtherPresentations($sValue);
     }
     return $sValue;
 }
Esempio n. 2
0
 public function __toString()
 {
     return is_string(parent::getValue()) ? parent::getValue() : '';
 }