403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/calendar/lib/internals/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/calendar/lib/internals/pushtable.php
<?php
namespace Bitrix\Calendar\Internals;

use Bitrix\Main;
use Bitrix\Main\Localization\Loc;
use Bitrix\Main\ORM\Data\DataManager;
use Bitrix\Main\ORM\Fields\BooleanField;
use Bitrix\Main\ORM\Fields\DatetimeField;
use Bitrix\Main\ORM\Fields\IntegerField;
use Bitrix\Main\ORM\Fields\StringField;
use Bitrix\Main\ORM\Fields\EnumField;
use Bitrix\Main\ORM\Fields\Validators\LengthValidator;

Loc::loadMessages(__FILE__);

/**
 * Class PushTable
 *
 * Fields:
 * <ul>
 * <li> ENTITY_TYPE string(24) mandatory
 * <li> ENTITY_ID int mandatory
 * <li> CHANNEL_ID string(128) mandatory
 * <li> RESOURCE_ID string(128) mandatory
 * <li> EXPIRES datetime mandatory
 * <li> NOT_PROCESSED bool optional default 'N'
 * <li> FIRST_PUSH_DATE datetime optional
 * </ul>
 *
 * @package Bitrix\Calendar\Internals
 *
 * DO NOT WRITE ANYTHING BELOW THIS
 *
 * <<< ORMENTITYANNOTATION
 * @method static EO_Push_Query query()
 * @method static EO_Push_Result getByPrimary($primary, array $parameters = [])
 * @method static EO_Push_Result getById($id)
 * @method static EO_Push_Result getList(array $parameters = [])
 * @method static EO_Push_Entity getEntity()
 * @method static \Bitrix\Calendar\Internals\EO_Push createObject($setDefaultValues = true)
 * @method static \Bitrix\Calendar\Internals\EO_Push_Collection createCollection()
 * @method static \Bitrix\Calendar\Internals\EO_Push wakeUpObject($row)
 * @method static \Bitrix\Calendar\Internals\EO_Push_Collection wakeUpCollection($rows)
 */

class PushTable extends Main\Entity\DataManager
{
	/**
	 * Returns DB table name for entity.
	 *
	 * @return string
	 */
	public static function getTableName()
	{
		return 'b_calendar_push';
	}

	/**
	 * Returns entity map definition.
	 *
	 * @return array
	 */
	public static function getMap()
	{
		return [
			(new StringField('ENTITY_TYPE',
				[
					'validation' => [__CLASS__, 'validateEntityType']
				]
			))
				->configureTitle(Loc::getMessage('PUSH_ENTITY_ENTITY_TYPE_FIELD'))
				->configurePrimary(true)
			,
			(new IntegerField('ENTITY_ID'))
				->configureTitle(Loc::getMessage('PUSH_ENTITY_ENTITY_ID_FIELD'))
				->configurePrimary(true)
			,
			(new StringField('CHANNEL_ID',
				[
					'validation' => [__CLASS__, 'validateChannelId']
				]
			))
				->configureTitle(Loc::getMessage('PUSH_ENTITY_CHANNEL_ID_FIELD'))
				->configureRequired(true)
			,
			(new StringField('RESOURCE_ID',
				[
					'validation' => [__CLASS__, 'validateResourceId']
				]
			))
				->configureTitle(Loc::getMessage('PUSH_ENTITY_RESOURCE_ID_FIELD'))
				->configureRequired(true)
			,
			(new DatetimeField('EXPIRES'))
				->configureTitle(Loc::getMessage('PUSH_ENTITY_EXPIRES_FIELD'))
				->configureRequired(true)
			,
			(new EnumField('NOT_PROCESSED'))
				->configureTitle(Loc::getMessage('PUSH_ENTITY_NOT_PROCESSED_FIELD'))
				->configureValues(['N', 'Y', 'B', 'U'])
				->configureDefaultValue('N')
			,
			(new DatetimeField('FIRST_PUSH_DATE'))
				->configureTitle(Loc::getMessage('PUSH_ENTITY_FIRST_PUSH_DATE_FIELD'))
			,
		];
	}

	/**
	 * Returns validators for ENTITY_TYPE field.
	 *
	 * @return array
	 */
	public static function validateEntityType(): array
	{
		return [
			new LengthValidator(null, 24),
		];
	}

	/**
	 * Returns validators for CHANNEL_ID field.
	 *
	 * @return array
	 */
	public static function validateChannelId(): array
	{
		return [
			new LengthValidator(null, 128),
		];
	}

	/**
	 * Returns validators for RESOURCE_ID field.
	 *
	 * @return array
	 */
	public static function validateResourceId(): array
	{
		return [
			new LengthValidator(null, 128),
		];
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit