Your IP : 3.144.98.61


Current Path : /var/www/www-root/data/www.catalog.monolith-realty.ru/bitrix/modules/landing/lib/internals/
Upload File :
Current File : /var/www/www-root/data/www.catalog.monolith-realty.ru/bitrix/modules/landing/lib/internals/lock.php

<?php
namespace Bitrix\Landing\Internals;

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

Loc::loadMessages(__FILE__);

/**
 * Class LockTable
 *
 * DO NOT WRITE ANYTHING BELOW THIS
 *
 * <<< ORMENTITYANNOTATION
 * @method static EO_Lock_Query query()
 * @method static EO_Lock_Result getByPrimary($primary, array $parameters = array())
 * @method static EO_Lock_Result getById($id)
 * @method static EO_Lock_Result getList(array $parameters = array())
 * @method static EO_Lock_Entity getEntity()
 * @method static \Bitrix\Landing\Internals\EO_Lock createObject($setDefaultValues = true)
 * @method static \Bitrix\Landing\Internals\EO_Lock_Collection createCollection()
 * @method static \Bitrix\Landing\Internals\EO_Lock wakeUpObject($row)
 * @method static \Bitrix\Landing\Internals\EO_Lock_Collection wakeUpCollection($rows)
 */
class LockTable extends Entity\DataManager
{
	/**
	 * Returns DB table name for entity.
	 * @return string
	 */
	public static function getTableName()
	{
		return 'b_landing_entity_lock';
	}

	/**
	 * Returns entity map definition.
	 * @return array
	 */
	public static function getMap()
	{
		return array(
			'ID' => new Entity\IntegerField('ID', array(
				'title' => 'ID',
				'primary' => true,
				'autocomplete' => true,
			)),
			'ENTITY_ID' => new Entity\IntegerField('ENTITY_ID', array(
				'title' => Loc::getMessage('LANDING_TABLE_FIELD_LOCK_ENTITY_ID'),
				'required' => true
			)),
			'ENTITY_TYPE' => new Entity\StringField('ENTITY_TYPE', array(
				'title' => Loc::getMessage('LANDING_TABLE_FIELD_LOCK_ENTITY_TYPE'),
				'required' => true
			)),
			'LOCK_TYPE' => new Entity\StringField('LOCK_TYPE', array(
				'title' => Loc::getMessage('LANDING_TABLE_FIELD_LOCK_TYPE'),
				'required' => true
			))
		);
	}
}