Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/modules/sender/lib/internals/model/
Upload File :
Current File : /var/www/homesaver/www/bitrix/modules/sender/lib/internals/model/groupqueue.php

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

use Bitrix\Main\Entity;
use Bitrix\Main\Localization\Loc;

Loc::loadMessages(__FILE__);

/**
 * Class GroupQueueTable
 *
 * DO NOT WRITE ANYTHING BELOW THIS
 *
 * <<< ORMENTITYANNOTATION
 * @method static EO_GroupQueue_Query query()
 * @method static EO_GroupQueue_Result getByPrimary($primary, array $parameters = array())
 * @method static EO_GroupQueue_Result getById($id)
 * @method static EO_GroupQueue_Result getList(array $parameters = array())
 * @method static EO_GroupQueue_Entity getEntity()
 * @method static \Bitrix\Sender\Internals\Model\EO_GroupQueue createObject($setDefaultValues = true)
 * @method static \Bitrix\Sender\Internals\Model\EO_GroupQueue_Collection createCollection()
 * @method static \Bitrix\Sender\Internals\Model\EO_GroupQueue wakeUpObject($row)
 * @method static \Bitrix\Sender\Internals\Model\EO_GroupQueue_Collection wakeUpCollection($rows)
 */
class GroupQueueTable extends Entity\DataManager
{
	const TYPE = [
		'POSTING' => 1,
		'REST' => 2,
	];

	/**
	 * Get table name.
	 *
	 * @return string
	 */
	public static function getTableName()
	{
		return 'b_sender_group_queue';
	}

	/**
	 * Get map.
	 *
	 * @return array
	 */
	public static function getMap()
	{
		return array(
			'ID' => array(
				'data_type' => 'integer',
				'autocomplete' => true,
				'primary' => true,
			),
			'DATE_INSERT' => array(
				'data_type' => 'datetime',
			),
			'TYPE' => array(
				'data_type' => 'integer',
			),
			'ENTITY_ID' => array(
				'data_type' => 'integer',
			),
			'GROUP_ID' => array(
				'data_type' => 'integer',
			),
		);
	}
}