Файловый менеджер - Редактировать - /var/www/axolotl/data/www/axolotls.ru/www/bitrix/modules/disk/lib/internals/index/objectextendedindextable.php
Назад
<?php namespace Bitrix\Disk\Internals\Index; use Bitrix\Disk\Configuration; use Bitrix\Main\ORM\Fields; use Bitrix\Main\Type\DateTime; class ObjectExtendedIndexTable extends BaseIndexTable { const STATUS_SHORT = 2; const STATUS_EXTENDED = 3; public static function getMap() { return array_merge(parent::getMap(), [ (new Fields\EnumField('STATUS')) ->configureValues([ static::STATUS_SHORT, static::STATUS_EXTENDED, ]) ->configureDefaultValue(static::STATUS_SHORT) ]); } public static function getTableName() { return 'b_disk_object_extended_index'; } public static function getMaxIndexSize() { return Configuration::getMaxExtendedIndexSize(); } public static function upsert($objectId, $searchIndex, $status = self::STATUS_SHORT) { $objectId = (int)$objectId; $searchIndex = trim($searchIndex); static::merge([ 'OBJECT_ID' => $objectId, 'SEARCH_INDEX' => $searchIndex, 'UPDATE_TIME' => new DateTime(), 'STATUS' => $status, ]); } public static function changeStatus($objectId, $status) { $objectId = (int)$objectId; static::merge([ 'OBJECT_ID' => $objectId, 'UPDATE_TIME' => new DateTime(), 'STATUS' => $status, ]); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.8 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка