IBOS open source
  • Namespace
  • Class

Namespaces

  • application
    • core
      • cache
        • driver
        • provider
      • components
      • controllers
      • engines
        • local
        • sae
      • model
      • modules
      • utils
      • widgets
    • modules
      • article
        • controllers
        • core
        • model
        • utils
      • calendar
        • controllers
        • model
        • utils
      • contact
        • controllers
        • model
        • utils
      • dashboard
        • controllers
        • model
        • utils
      • department
        • components
        • model
        • utils
      • diary
        • components
        • controllers
        • model
        • utils
        • widgets
      • email
        • controllers
        • core
        • model
        • utils
      • main
        • behaviors
        • components
        • controllers
        • model
        • utils
        • widgets
      • message
        • controllers
        • core
          • co
          • wx
            • callback
            • event
        • model
        • utils
      • mobile
        • components
        • controllers
        • utils
      • position
        • components
        • model
        • utils
      • recruit
        • components
        • controllers
        • core
        • model
        • utils
        • widgets
      • role
        • model
        • utils
      • user
        • components
        • controllers
        • model
        • utils
      • vote
        • components
        • controllers
        • model
        • utils
      • weibo
        • controllers
        • core
        • model
        • utils

Classes

  • Api
  • ApiCode
  • Attach
  • Cache
  • Cloud
  • Convert
  • Credit
  • Database
  • DateTime
  • Env
  • File
  • Ftp
  • IBOS
  • Image
  • Mail
  • Module
  • Org
  • Page
  • PHPExcel
  • String
  • System
  • Upgrade
  • Url
  • WebSite
  • Xml
  • XMLParse

Class Module

Namespace: application\core\utils
Copyright: Copyright © 2012-2013 IBOS Inc
Author: banyanCheung banyan@ibos.com.cn
Located at system/core/utils/Module.php

Methods summary

public static boolean
# getIsEnabled( string $moduleName )

检查某个模块是否可用

检查某个模块是否可用

Parameters

$moduleName
模块名

Returns

boolean
是否可用
public static array
# getCoreModule( )

获得核心模块数组

获得核心模块数组

Returns

array
public static array
# getDependModule( )

获得核心依赖模块数组

获得核心依赖模块数组

Returns

array
public static boolean
# install( string $moduleName )

执行模块安装

执行模块安装

Parameters

$moduleName
模块名

Returns

boolean
安装成功与否

Throws

CException
检查安装文件夹时的异常
public static boolean
# uninstall( string $moduleName )

执行模块卸载

执行模块卸载

Parameters

$moduleName
模块名

Returns

boolean
public static array
# getModuleDirs( )

获取所有模块目录

获取所有模块目录

Returns

array
public static string
# getModulePath( )

获取模块文件夹真实路径

获取模块文件夹真实路径

Returns

string
public static string
# getInstallPath( string $module )

获取模块安装文件夹路径

获取模块安装文件夹路径

Parameters

$module
模块名

Returns

string
public static string
# getUninstallPath( string $module )

获取模块安装文件夹路径

获取模块安装文件夹路径

Parameters

$module
模块名

Returns

string
public static array
# filterInstalledModule( array $installedModule, array $moduleDirs )

过滤掉已安装模块,返回未安装模块名

过滤掉已安装模块,返回未安装模块名

Parameters

$installedModule
已安装模块
$moduleDirs
所有模块的文件夹数组

Returns

array
public static array
# initModuleParameter( string $moduleName )

初始化模块配置文件 - 参数部分

初始化模块配置文件 - 参数部分

Parameters

$moduleName
模块名称

Returns

array
public static array
# initModuleParameters( array $moduleDirs )

初始化多个模块配置文件 - 参数部分,用于列表

初始化多个模块配置文件 - 参数部分,用于列表

Parameters

$moduleDirs

Returns

array
public static boolean
# updateConfig( mixed $module = '', boolean $updateAuth = true )

更新模块配置文件

更新模块配置文件

Parameters

$module
要更新的模块名,为空更新全部,可单个模块字符串也可数组格式
$updateAuth
是否更新授权信息

Returns

boolean
public static
# updateAuthorization( array $authItem, string $moduleName, $category )

更新授权认证项目

更新授权认证项目

Parameters

$authItem
配置文件中的授权节点数组
$moduleName
对应的模块名字
$category
public static
# executeSql( string $sql )

执行mysql.sql文件,创建数据表等

执行mysql.sql文件,创建数据表等

Parameters

$sql
sql语句

Constants summary

string MODULE_ALIAS

模块文件夹别名

模块文件夹别名

# 'modules'
string INSTALL_PATH_ALIAS

模块安装文件夹别名

模块安装文件夹别名

# 'install'
string UNINSTALL_PATH_ALIAS

模块卸载文件夹别名

模块卸载文件夹别名

# 'uninstall'
string DS

路径分隔常量

路径分隔常量

# DIRECTORY_SEPARATOR
IBOS open source API documentation generated by ApiGen