%PDF- %PDF-
Direktori : /home/bitrix/www/bitrix/modules/sale/lib/internals/ |
Current File : /home/bitrix/www/bitrix/modules/sale/lib/internals/orderdeliveryreq.php |
<?php namespace Bitrix\Sale\Internals; use Bitrix\Main; Main\Localization\Loc::loadMessages(__FILE__); /** * Class OrderDeliveryReqTable * * Fields: * <ul> * <li> ID int mandatory * <li> ORDER_ID int mandatory * <li> DELIVERY_LOCATION string(50) optional * <li> DATE_REQUEST datetime optional * <li> PARAMS string optional * </ul> * * @package Bitrix\Sale\Delivery **/ class OrderDeliveryReqTable extends Main\Entity\DataManager { public static function getTableName() { return 'b_sale_order_delivery_req'; } public static function getMap() { return array( 'ID' => array( 'data_type' => 'integer', 'primary' => true, 'autocomplete' => true, 'title' => Main\Localization\Loc::getMessage('ORDERDELIVERY_ENTITY_ID_FIELD'), ), 'ORDER_ID' => array( 'data_type' => 'integer', 'required' => true, 'title' => Main\Localization\Loc::getMessage('ORDERDELIVERY_ENTITY_ORDER_ID_FIELD'), ), 'DELIVERY_LOCATION' => array( 'data_type' => 'string', 'validation' => array(__CLASS__, 'validateLocation'), 'title' => Main\Localization\Loc::getMessage('ORDERDELIVERY_ENTITY_HID_FIELD'), ), 'DATE_REQUEST' => array( 'data_type' => 'datetime', 'title' => Main\Localization\Loc::getMessage('ORDERDELIVERY_ENTITY_DATE_REQUEST_FIELD'), ), 'PARAMS' => array( 'data_type' => 'text', 'serialized' => true, 'title' => Main\Localization\Loc::getMessage('ORDERDELIVERY_ENTITY_PARAMS_FIELD'), ), 'SHIPMENT_ID' => array( 'data_type' => 'integer', 'title' => Main\Localization\Loc::getMessage('ORDERDELIVERY_ENTITY_SHIPMENT_ID_FIELD'), ) ); } public static function validateLocation() { return array( new Main\Entity\Validator\Length(null, 50), ); } }