Your IP : 18.116.36.205


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

<?php
namespace Bitrix\Main;

use Bitrix\Main\Entity;

/**
 * Class UserCounterTable
 *
 * DO NOT WRITE ANYTHING BELOW THIS
 *
 * <<< ORMENTITYANNOTATION
 * @method static EO_UserCounter_Query query()
 * @method static EO_UserCounter_Result getByPrimary($primary, array $parameters = [])
 * @method static EO_UserCounter_Result getById($id)
 * @method static EO_UserCounter_Result getList(array $parameters = [])
 * @method static EO_UserCounter_Entity getEntity()
 * @method static \Bitrix\Main\EO_UserCounter createObject($setDefaultValues = true)
 * @method static \Bitrix\Main\EO_UserCounter_Collection createCollection()
 * @method static \Bitrix\Main\EO_UserCounter wakeUpObject($row)
 * @method static \Bitrix\Main\EO_UserCounter_Collection wakeUpCollection($rows)
 */
class UserCounterTable extends Entity\DataManager
{
	public static function getTableName()
	{
		return 'b_user_counter';
	}

	public static function getMap()
	{
		return array(
			'USER_ID' => array(
				'data_type' => 'integer',
				'primary' => true
			),
			'SITE_ID' => array(
				'data_type' => 'string',
				'validation' => array(__CLASS__, 'validateSiteId'),
				'primary' => true
			),
			'CODE' => array(
				'data_type' => 'string',
				'validation' => array(__CLASS__, 'validateCode'),
				'primary' => true
			),
			'TAG' => array(
				'data_type' => 'string',
				'validation' => array(__CLASS__, 'validateTag'),
			),
			'PARAMS' => array(
				'data_type' => 'text'
			),
			'SENT' => array(
				'data_type' => 'string',
				'validation' => array(__CLASS__, 'validateSent'),
			),
			'CNT' => array(
				'data_type' => 'integer'
			),
			'LAST_DATE' => array(
				'data_type' => 'datetime'
			),
			'TIMESTAMP_X' => array(
				'data_type' => 'datetime'
			),
			'USER' => array(
				'data_type' => 'Bitrix\Main\UserTable',
				'reference' => array('=this.USER_ID' => 'ref.ID')
			),
		);
	}

	public static function validateProviderId()
	{
		return array(
			new Entity\Validator\Length(null, 50),
		);
	}

	public static function validateSiteId()
	{
		return array(
			new Entity\Validator\Length(null, 2),
		);
	}

	public static function validateCode()
	{
		return array(
			new Entity\Validator\Length(null, 50),
		);
	}

	public static function validateSent()
	{
		return array(
			new Entity\Validator\Length(null, 1),
		);
	}

	public static function validateTag()
	{
		return array(
			new Entity\Validator\Length(null, 255),
		);
	}

	public static function validateAccessCode()
	{
		return array(
			new Entity\Validator\Length(null, 100),
		);
	}
}