AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 52.15.86.164
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/bitrix/www/bitrix/modules/main/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/bitrix/www/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),
		);
	}
}

Anon7 - 2022
AnonSec Team