-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
317 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
bitrix-stubs/bitrix/modules/highloadblock/lib/datamanager.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace Bitrix\Highloadblock; | ||
|
||
use Bitrix\Main\Entity; | ||
|
||
/** | ||
* DataManager - класс для работы с данными highload-блоков. | ||
* | ||
* @link https://dev.1c-bitrix.ru/api_d7/bitrix/highloadblock/datamanager/index.php | ||
*/ | ||
abstract class DataManager extends Entity\DataManager | ||
{ | ||
/** | ||
* Метод возвращает информацию о highload-блоке. | ||
* | ||
* @return null | ||
* @link https://dev.1c-bitrix.ru/api_d7/bitrix/highloadblock/datamanager/gethighloadblock.php | ||
*/ | ||
public static function getHighloadBlock() | ||
{ | ||
return null; | ||
} | ||
} |
179 changes: 179 additions & 0 deletions
179
bitrix-stubs/bitrix/modules/highloadblock/lib/highloadblock.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
<?php | ||
|
||
namespace Bitrix\Highloadblock; | ||
|
||
use Bitrix\Main; | ||
use Bitrix\Main\Entity; | ||
|
||
/** | ||
* HighloadBlockTable - класс для работы с таблицей highload-блоков. | ||
* | ||
* @link https://dev.1c-bitrix.ru/api_d7/bitrix/highloadblock/highloadblocktable/index.php | ||
*/ | ||
class HighloadBlockTable extends Entity\DataManager | ||
{ | ||
/** | ||
* Метод возвращает название таблицы highload-блоков в базе данных. | ||
* | ||
* @return string | ||
* @link https://dev.1c-bitrix.ru/api_d7/bitrix/highloadblock/highloadblocktable/gettablename.php | ||
*/ | ||
public static function getTableName(): string | ||
{ | ||
return ''; | ||
} | ||
|
||
/** | ||
* Undocumented function | ||
* | ||
* @return array | ||
*/ | ||
public static function getMap(): array | ||
{ | ||
return []; | ||
} | ||
|
||
/** | ||
* Метод добавляет новый highload-блок. | ||
* | ||
* @param array $data Массив, содержащий значения полей highload-блока. | ||
* @return Entity\AddResult | ||
* @throws \Bitrix\Main\SystemException | ||
* @link https://dev.1c-bitrix.ru/api_d7/bitrix/highloadblock/highloadblocktable/add.php | ||
*/ | ||
public static function add(array $data): Entity\AddResult | ||
{ | ||
return new Entity\AddResult(); | ||
} | ||
|
||
/** | ||
* Метод изменяет параметры highload-блока с ключом $primary. | ||
* | ||
* @param mixed $primary Первичный ключ. Идентификатор highload-блока. | ||
* @param array $data Массив, содержащий значения полей highload-блока. | ||
* @return Entity\UpdateResult | ||
* @link https://dev.1c-bitrix.ru/api_d7/bitrix/highloadblock/highloadblocktable/update.php | ||
*/ | ||
public static function update($primary, array $data) | ||
{ | ||
return new Entity\UpdateResult(); | ||
} | ||
|
||
/** | ||
* Метод удаляет highload-блок с ключом $primary. | ||
* | ||
* @param mixed $primary Идентификатор highload-блока. | ||
* @return Main\DB\Result|Entity\DeleteResult | ||
* @link https://dev.1c-bitrix.ru/api_d7/bitrix/highloadblock/highloadblocktable/delete.php | ||
*/ | ||
public static function delete($primary): Entity\DeleteResult | ||
{ | ||
return new Entity\DeleteResult(); | ||
} | ||
|
||
/** | ||
* Undocumented function | ||
* | ||
* @param array|int|string $hlblock Could be a block, ID or NAME of block. | ||
* @return array|null | ||
*/ | ||
public static function resolveHighloadblock($hlblock): ?array | ||
{ } | ||
|
||
/** | ||
* Undocumented function | ||
* | ||
* @param array|int|string $hlblock Could be a block, ID or NAME of block. | ||
* @return Entity\Base | ||
* @throws \Bitrix\Main\SystemException | ||
*/ | ||
public static function compileEntity($hlblock): Entity\Base | ||
{ | ||
return new Entity\Base(); | ||
} | ||
|
||
/** | ||
* Undocumented function | ||
* | ||
* @param array $field | ||
* @return mixed | ||
*/ | ||
public static function OnBeforeUserTypeAdd(array $field) | ||
{ } | ||
|
||
/** | ||
* Undocumented function | ||
* | ||
* @param array $field | ||
* @return mixed | ||
*/ | ||
public static function onAfterUserTypeAdd(array $field) | ||
{ } | ||
|
||
/** | ||
* Undocumented function | ||
* | ||
* @param array $field | ||
* @return mixed | ||
*/ | ||
public static function OnBeforeUserTypeDelete(array $field) | ||
{ } | ||
|
||
/** | ||
* Undocumented function | ||
* | ||
* @param Entity\Base $hlentity | ||
* @param array $userfield | ||
* @return string | ||
*/ | ||
public static function getUtmEntityClassName(Entity\Base $hlentity, array $userfield): string | ||
{ | ||
return ''; | ||
} | ||
|
||
/** | ||
* Undocumented function | ||
* | ||
* @param array $hlblock | ||
* @param array $userfield | ||
* @return string | ||
*/ | ||
public static function getMultipleValueTableName(array $hlblock, array $userfield): string | ||
{ | ||
return ''; | ||
} | ||
|
||
/** | ||
* Undocumented function | ||
* | ||
* @return array | ||
*/ | ||
public static function validateName(): array | ||
{ | ||
return []; | ||
} | ||
|
||
/** | ||
* Undocumented function | ||
* | ||
* @return array | ||
*/ | ||
public static function validateTableName(): array | ||
{ | ||
return []; | ||
} | ||
|
||
/** | ||
* Undocumented function | ||
* | ||
* @param mixed $value | ||
* @param mixed $primary | ||
* @param array $row | ||
* @param Entity\Field $field | ||
* @return boolean | ||
*/ | ||
public static function validateTableExisting($value, $primary, array $row, Entity\Field $field): bool | ||
{ | ||
return false; | ||
} | ||
} |
56 changes: 56 additions & 0 deletions
56
bitrix-stubs/bitrix/modules/highloadblock/lib/highloadblocklang.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?php | ||
namespace Bitrix\Highloadblock; | ||
|
||
use Bitrix\Main\Entity; | ||
|
||
/** | ||
* HighloadBlockLangTable - класс для работы с таблицей языкозависимых параметров highload-блоков. | ||
* | ||
* @link https://dev.1c-bitrix.ru/api_d7/bitrix/highloadblock/highloadblocklangtable/index.php | ||
*/ | ||
class HighloadBlockLangTable extends Entity\DataManager | ||
{ | ||
/** | ||
* Метод возвращает название таблицы языкозависимых параметров highload-блоков. | ||
* | ||
* @return string | ||
* @link https://dev.1c-bitrix.ru/api_d7/bitrix/highloadblock/highloadblocklangtable/gettablename.php | ||
*/ | ||
public static function getTableName(): string | ||
{ | ||
return ''; | ||
} | ||
|
||
/** | ||
* Метод возвращает список полей для таблицы языкозависимых параметров highload-блока. | ||
* | ||
* @return array | ||
* @link https://dev.1c-bitrix.ru/api_d7/bitrix/highloadblock/highloadblocklangtable/getmap.php | ||
*/ | ||
public static function getMap(): array | ||
{ | ||
return []; | ||
} | ||
|
||
/** | ||
* Метод возвращает валидатор для поля LID. | ||
* | ||
* @return array | ||
* @link https://dev.1c-bitrix.ru/api_d7/bitrix/highloadblock/highloadblocklangtable/validatelid.php | ||
*/ | ||
public static function validateLid(): array | ||
{ | ||
return []; | ||
} | ||
|
||
/** | ||
* Метод возвращает валидатор для поля NAME. | ||
* | ||
* @return array | ||
* @link https://dev.1c-bitrix.ru/api_d7/bitrix/highloadblock/highloadblocklangtable/validatename.php | ||
*/ | ||
public static function validateName(): array | ||
{ | ||
return []; | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
bitrix-stubs/bitrix/modules/highloadblock/lib/highloadblockrights.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?php | ||
namespace Bitrix\Highloadblock; | ||
|
||
use Bitrix\Main\Entity; | ||
|
||
/** | ||
* HighloadBlockRightsTable - класс для работы с таблицей прав к highload-блокам. | ||
* В связи с архитектурой модуля проверка прав доступа в модуле не реализована на уровне запросов. Но вы можете самостоятельно проверить права на тот или иной highload-блок перед действиями с ним с помощью метода \Bitrix\HighloadBlock\HighloadBlockRightsTable::getOperationsName. | ||
* | ||
* @link https://dev.1c-bitrix.ru/api_d7/bitrix/highloadblock/highloadblockrightstable/index.php | ||
*/ | ||
class HighloadBlockRightsTable extends Entity\DataManager | ||
{ | ||
/** | ||
* Метод возвращает название таблицы прав к highload-блокам. | ||
* | ||
* @return string | ||
* @link https://dev.1c-bitrix.ru/api_d7/bitrix/highloadblock/highloadblockrightstable/gettablename.php | ||
*/ | ||
public static function getTableName(): string | ||
{ | ||
return ''; | ||
} | ||
|
||
/** | ||
* Метод возвращает список полей для таблицы прав к highload-блокам. | ||
* | ||
* @return array | ||
* @link https://dev.1c-bitrix.ru/api_d7/bitrix/highloadblock/highloadblockrightstable/getmap.php | ||
*/ | ||
public static function getMap(): array | ||
{ | ||
return []; | ||
} | ||
|
||
/** | ||
* Метод возвращает валидатор для поля ACCESS_CODE. | ||
* | ||
* @return array | ||
* @link https://dev.1c-bitrix.ru/api_d7/bitrix/highloadblock/highloadblockrightstable/validateaccesscode.php | ||
*/ | ||
public static function validateAccessCode(): array | ||
{ | ||
return []; | ||
} | ||
|
||
/** | ||
* Метод выполняет проверку прав доступа к highload-блоку для текущего пользователя. | ||
* | ||
* @param int|array $hlId Идентификатор (или массив идентификаторов) highload-блока. | ||
* @return array | ||
* @link https://dev.1c-bitrix.ru/api_d7/bitrix/highloadblock/highloadblockrightstable/getoperationsname.php | ||
*/ | ||
public static function getOperationsName($hlId): array | ||
{ | ||
return []; | ||
} | ||
} |