| 1 | <?php |
||
| 19 | class SalesOrderGet extends AbstractType implements TypeInterface |
||
| 20 | { |
||
| 21 | const FORMAT_CSV = 0; |
||
| 22 | const FORMAT_ZIP = 1; |
||
| 23 | |||
| 24 | const FILTER_ON = 1; // useable for 'only_changed' and 'only_created_by_system' |
||
| 25 | const FILTER_OFF = 0; // useable for 'only_changed' and 'only_created_by_system' |
||
| 26 | |||
| 27 | const WITH_LETTER_PAPER = 0; |
||
| 28 | const NO_LETTER_PAPER = 1; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var array |
||
| 32 | */ |
||
| 33 | protected $template = array( |
||
| 34 | 'type_identifier' => 'SALES_ORDER_GET', |
||
| 35 | 'order_id' => null, |
||
| 36 | 'client_id' => null, |
||
| 37 | 'customer_id' => null, |
||
| 38 | 'order_date_start' => null, |
||
| 39 | 'order_date_end' => null, |
||
| 40 | 'customer_order_id' => null, |
||
| 41 | 'format' => null, |
||
| 42 | 'only_changed' => null, |
||
| 43 | 'system_name' => null, // 10 |
||
| 44 | 'only_created_by_system' => null, |
||
| 45 | 'letter_paper' => null, |
||
| 46 | ); |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Formally validates the type data in $data attribute. |
||
| 50 | * |
||
| 51 | * @return bool Validation success |
||
| 52 | */ |
||
| 53 | public function validate() |
||
| 57 | } |
||
| 58 |