itdelta-prog/bitrix-tools 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

itdelta-prog/bitrix-tools

Composer 安装命令:

composer require itdelta-prog/bitrix-tools

包简介

Helpers for developers on Bitrix

README 文档

README

Build Status Latest Stable Version Total Downloads License

Tools for developers on Bitrix CMS:

  • IblockTools: finder info blocks and properties by IDs or symbol codes.
<?php
use Bex\Tools\Iblock\IblockTools;

$iblockFinder = IblockTools::find('iblock_type', 'iblock_code');

$iblockId = $iblockFinder->id();
$propEnumId = $iblockFinder->propEnumId('PROP_CODE', 'VALUE_XML_ID');

// And much more…
  • GroupTools: finder users groups by IDs or symbol codes.
<?php
use Bex\Tools\Group\GroupTools;

$groupFinder = GroupTools::find('group_code');

$groupId = $groupFinder->id();
$groupCode = GroupTools::findById(3)->code();

// And that's not all ;-)
  • HlBlockTools: finder for highloadblock IDs by it's names.
<?php
use Bex\Tools\HlBlock\HlBlockTools;

$hlBlockFinder = HlBlockTools::find('ReferenceName');

$hlBlockId = $hlBlockFinder->id();
$hlBlockName = HlBlockTools::findById(2)->name();
  • Catalog\GroupTools: finder for catalog groups (price types) by it's names? id's or "BASE" flag.
<?php
use Bex\Tools\Catalog\GroupTools;

$catalogGroupFinder = GroupTools::find('RETAIL');
$priceTypeId = $catalogGroupFinder->id();

$priceTypeName = GroupTools::findBase()->name();
  • Prevents the creation of infoblocks with the same codes.
  • Prevents the creation of user groups with the same string id.

Installation

Add library on your Composer:

composer require bitrix-expert/tools

Documentation

See wiki and php docs in the classes of library.

统计信息

  • 总下载量: 193
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 15
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-10-09