Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/modules/sender/lib/
Upload File :
Current File : /var/www/homesaver/www/bitrix/modules/sender/lib/timelinequeue.php

<?php
/**
 * Bitrix Framework
 * @package bitrix
 * @subpackage sender
 * @copyright 2001-2012 Bitrix
 */
namespace Bitrix\Sender;

use Bitrix\Main\Access\Entity\DataManager;
use Bitrix\Main\Localization\Loc;
use Bitrix\Main\Type as MainType;

Loc::loadMessages(__FILE__);

/**
 * Class TimeLineQueueTable
 *
 * DO NOT WRITE ANYTHING BELOW THIS
 *
 * <<< ORMENTITYANNOTATION
 * @method static EO_TimeLineQueue_Query query()
 * @method static EO_TimeLineQueue_Result getByPrimary($primary, array $parameters = array())
 * @method static EO_TimeLineQueue_Result getById($id)
 * @method static EO_TimeLineQueue_Result getList(array $parameters = array())
 * @method static EO_TimeLineQueue_Entity getEntity()
 * @method static \Bitrix\Sender\EO_TimeLineQueue createObject($setDefaultValues = true)
 * @method static \Bitrix\Sender\EO_TimeLineQueue_Collection createCollection()
 * @method static \Bitrix\Sender\EO_TimeLineQueue wakeUpObject($row)
 * @method static \Bitrix\Sender\EO_TimeLineQueue_Collection wakeUpCollection($rows)
 */
class TimeLineQueueTable extends DataManager
{
	const STATUS_NEW = 'N';

	/**
	 * @return string
	 */
	public static function getTableName()
	{
		return 'b_sender_timeline_queue';
	}

	/**
	 * @return array
	 */
	public static function getMap()
	{
		return [
			'ID'      => [
				'data_type'    => 'integer',
				'primary'      => true,
				'autocomplete' => true,
			],
			'POSTING_ID'      => [
				'data_type'    => 'integer',
				'autocomplete' => true,
			],
			'ENTITY_ID'      => [
				'data_type' => 'integer',
				'required'  => true,
			],
			'RECIPIENT_ID'      => [
				'data_type' => 'integer',
				'required'  => true,
			],
			'CONTACT_TYPE_ID' => [
				'data_type' => 'integer',
			],
			'CONTACT_CODE'    => [
				'data_type' => 'string',
				'required'  => true
			],
			'FIELDS'          => [
				'data_type' => 'string',
				'required'  => true,
			],
			'DATE_INSERT'     => [
				'data_type'     => 'datetime',
				'required'      => true,
				'default_value' => new MainType\DateTime(),
			],
			'STATUS'          => [
				'data_type'     => 'string',
				'required'      => true,
				'default_value' => static::STATUS_NEW,
			],
		];
	}
}