src/Biz/Org/Service/OrgBatchUpdateFactory.php

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php

namespace Biz\Org\Service;

use Biz\Common\CommonException;
use Topxia\Service\Common\ServiceKernel;

class OrgBatchUpdateFactory
{
    public static function getModuleService($module)
    {
        $modules = self::getModules();
        if (!array_key_exists($module, $modules)) {
            throw CommonException::ERROR_PARAMETER();
        }

        return $modules[$module];
    }

    //batchUpdateOrg

    public static function getModules()
    {
        return array(
            'user' => array(
                'protocol' => 'biz',
                'service' => 'User:UserService',
                'method' => 'countUsers',
            ),
            'courseSet' => array(
                'protocol' => 'biz',
                'service' => 'Course:CourseSetService',
                'method' => 'countCourseSets',
            ),
            'classroom' => array(
                'protocol' => 'biz',
                'service' => 'Classroom:ClassroomService',
                'method' => 'countClassrooms',
            ),
            'article' => array(
                'protocol' => 'biz',
                'service' => 'Article:ArticleService',
                'method' => 'countArticles',
            ),
            'announcement' => array(
                'protocol' => 'biz',
                'service' => 'Announcement:AnnouncementService',
                'method' => 'countAnnouncements',
            ),
            'openCourse' => array(
                'protocol' => 'biz',
                'service' => 'OpenCourse:OpenCourseService',
                'method' => 'countCourses',
            ),
        );
    }

    public static function getDispayModuleName($key)
    {
        $modules = array(

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。