public function getValue() { $value = parent::getValue(); if ('0000-00-00' == $value) { $value = ''; } return $value; }
/** * with multiple file we have an array of values (string, separated by ;) * */ public function getValue() { $values = array(); if (parent::getValue()) { $values = explode(';', trim(parent::getValue())); } return $values; }
public function __construct() { parent::__construct(); $this->setTemplate('amorderattach/renderer/link.phtml'); }