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/blog/lib/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/blog/lib/post.php
<?php
/**
 * Bitrix Framework
 * @package bitrix
 * @subpackage blog
 * @copyright 2001-2012 Bitrix
 */
namespace Bitrix\Blog;

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

Loc::loadMessages(__FILE__);

/**
 * Class PostTable
 *
 * DO NOT WRITE ANYTHING BELOW THIS
 *
 * <<< ORMENTITYANNOTATION
 * @method static EO_Post_Query query()
 * @method static EO_Post_Result getByPrimary($primary, array $parameters = array())
 * @method static EO_Post_Result getById($id)
 * @method static EO_Post_Result getList(array $parameters = array())
 * @method static EO_Post_Entity getEntity()
 * @method static \Bitrix\Blog\EO_Post createObject($setDefaultValues = true)
 * @method static \Bitrix\Blog\EO_Post_Collection createCollection()
 * @method static \Bitrix\Blog\EO_Post wakeUpObject($row)
 * @method static \Bitrix\Blog\EO_Post_Collection wakeUpCollection($rows)
 */
class PostTable extends Entity\DataManager
{
	public static function getTableName()
	{
		return 'b_blog_post';
	}

	public static function getUfId()
	{
		return 'BLOG_POST';
	}

	public static function getMap()
	{
		$fieldsMap = array(
			'ID' => array(
				'data_type' => 'integer',
				'primary' => true,
				'autocomplete' => true,
			),
			'BLOG_ID' => array(
				'data_type' => 'integer'
			),
			'AUTHOR_ID' => array(
				'data_type' => 'integer'
			),
			'CODE' => array(
				'data_type' => 'string'
			),
			'MICRO' => array(
				'data_type' => 'string',
				'values' => array('N','Y')
			),
			'DATE_CREATE' => array(
				'data_type' => 'datetime'
			),
			'DATE_PUBLISH' => array(
				'data_type' => 'datetime'
			),
			'PUBLISH_STATUS' => array(
				'data_type' => 'string',
				'values' => array(BLOG_PUBLISH_STATUS_DRAFT, BLOG_PUBLISH_STATUS_READY, BLOG_PUBLISH_STATUS_PUBLISH)
			),
			'ENABLE_COMMENTS' => array(
				'data_type' => 'string',
				'values' => array('N','Y')
			),
			'NUM_COMMENTS' => array(
				'data_type' => 'integer'
			),
			'NUM_COMMENTS_ALL' => array(
				'data_type' => 'integer'
			),
			'VIEWS' => array(
				'data_type' => 'integer'
			),
			'HAS_SOCNET_ALL' => array(
				'data_type' => 'string',
				'values' => array('N','Y')
			),
			'HAS_TAGS' => array(
				'data_type' => 'string',
				'values' => array('N','Y')
			),
			'HAS_IMAGES' => array(
				'data_type' => 'string',
				'values' => array('N','Y')
			),
			'HAS_PROPS' => array(
				'data_type' => 'string',
				'values' => array('N','Y')
			),
			'HAS_COMMENT_IMAGES' => array(
				'data_type' => 'string',
				'values' => array('N','Y')
			),
			'TITLE' => array(
				'data_type' => 'string',
				'save_data_modification' => array('\Bitrix\Main\Text\Emoji', 'getSaveModificator'),
				'fetch_data_modification' => array('\Bitrix\Main\Text\Emoji', 'getFetchModificator'),
			),
			'DETAIL_TEXT' => array(
				'data_type' => 'text',
				'save_data_modification' => array('\Bitrix\Main\Text\Emoji', 'getSaveModificator'),
				'fetch_data_modification' => array('\Bitrix\Main\Text\Emoji', 'getFetchModificator'),
			),
			'CATEGORY_ID' => array(
				'data_type' => 'string',
			),
			'BACKGROUND_CODE' => [
				'data_type' => 'string'
			],
		);

		return $fieldsMap;
	}

	public static function add(array $data)
	{
		throw new NotImplementedException("Use CBlogPost class.");
	}

	public static function update($primary, array $data)
	{
		throw new NotImplementedException("Use CBlogPost class.");
	}

	public static function delete($primary)
	{
		throw new NotImplementedException("Use CBlogPost class.");
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit