| @@ 13-24 (lines=12) @@ | ||
| 10 | */ |
|
| 11 | class FieldSelect extends FieldTagList implements ExportableField, ImportableField |
|
| 12 | { |
|
| 13 | public function __construct() |
|
| 14 | { |
|
| 15 | parent::__construct(); |
|
| 16 | $this->_name = __('Select Box'); |
|
| 17 | $this->_required = true; |
|
| 18 | $this->_showassociation = true; |
|
| 19 | ||
| 20 | // Set default |
|
| 21 | $this->set('show_column', 'yes'); |
|
| 22 | $this->set('location', 'sidebar'); |
|
| 23 | $this->set('required', 'no'); |
|
| 24 | } |
|
| 25 | ||
| 26 | /*------------------------------------------------------------------------- |
|
| 27 | Definition: |
|
| @@ 23-33 (lines=11) @@ | ||
| 20 | protected static $max_date = '9999-12-31 23:59:59'; |
|
| 21 | private $key; |
|
| 22 | ||
| 23 | public function __construct() |
|
| 24 | { |
|
| 25 | parent::__construct(); |
|
| 26 | $this->_name = __('Date'); |
|
| 27 | $this->_required = true; |
|
| 28 | $this->key = 1; |
|
| 29 | ||
| 30 | $this->set('pre_populate', 'now'); |
|
| 31 | $this->set('required', 'no'); |
|
| 32 | $this->set('location', 'sidebar'); |
|
| 33 | } |
|
| 34 | ||
| 35 | /*------------------------------------------------------------------------- |
|
| 36 | Definition: |
|