public function setValue($value, $record = null, $markChanged = true) { // Map dataobject value to array if ($value instanceof DataObject) { $value = array('ID' => $value->ID, 'Class' => $value->class); } parent::setValue($value, $record, $markChanged); }
public function setField($field, $value, $markChanged = true) { // Catch filename validation on direct assignment if ($field === 'Filename' && $value) { $this->assertFilenameValid($value); } return parent::setField($field, $value, $markChanged); }
public function __construct($name = null) { $this->currencyLib = new Zend_Currency(null, i18n::get_locale()); parent::__construct($name); }