定制 liventin/base.module.migration.smart.process.workspace 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

liventin/base.module.migration.smart.process.workspace

最新稳定版本:v1.0.1

Composer 安装命令:

composer require liventin/base.module.migration.smart.process.workspace

包简介

Service for migration smart processes workspace (digital)

README 文档

README

Bitrix Base Module

install | update

"require": {
    "liventin/base.module.migration.smart.process.workspace": "^1.0.0"
}

redirect (optional)

"extra": {
  "service-redirect": {
    "liventin/base.module.migration.smart.process.workspace": "module.name",
  }
}

PhpStorm Live Template

<?php

/** @bxnolanginspection */

namespace ${MODULE_PROVIDER_CAMMAL_CASE}\\${MODULE_CODE_CAMMAL_CASE}\Migration\DigitalWorkplace;


use ${MODULE_PROVIDER_CAMMAL_CASE}\\${MODULE_CODE_CAMMAL_CASE}\Service\Container;
use ${MODULE_PROVIDER_CAMMAL_CASE}\\${MODULE_CODE_CAMMAL_CASE}\Service\Migration\SmartProcessWorkspace\WorkspaceSmartProcessEntity;
use ${MODULE_PROVIDER_CAMMAL_CASE}\\${MODULE_CODE_CAMMAL_CASE}\Service\SmartProcess\SmartProcessService;
use Bitrix\Main\ObjectNotFoundException;
use Bitrix\Main\SystemException;
use Psr\Container\NotFoundExceptionInterface;
use ReflectionException;

class SmartProcessWorkspaceExample implements WorkspaceSmartProcessEntity
{
    public static function getTitle(): string
    {
        return 'title';
    }

    /**
     * @throws NotFoundExceptionInterface
     * @throws ObjectNotFoundException
     * @throws ReflectionException
     * @throws SystemException
     */
    public static function getTypeIds(): array
    {
        /** @var SmartProcessService ${DS}srvSmartProcess */
        ${DS}srvSmartProcess = Container::get(SmartProcessService::SERVICE_CODE);

        return [
            ${DS}srvSmartProcess->getByName(SmartProcessOne::getName())->getTypeId(),
            ${DS}srvSmartProcess->getByName(SmartProcessTwo::getName())->getTypeId(),
        ];
    }
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-06-20