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 IBOS

Yii
Extended by application\core\utils\IBOS
Namespace: application\core\utils
Located at system/core/utils/IBOS.php

Methods summary

public static string
# lang( string $message, string $category = '', array $params = array(), string $source = null, string $language = null )

翻译语言

翻译语言

Parameters

$message

翻译内容
当eg:'test_language' 当前模块默认语言包找test_language翻译
当eg:'error/test_language' 当前模块的error语言包中找test_language翻译
当eg:'article/default/test_language' 在article模块的default语言包中找test_language翻译。

$category
指定目录名,为空则遵循以上规则查找
$params
语言变量替换数组
$source
语言文件
$language
目标语言

Returns

string

Author

Ring
public static mixed
# getCurrentModuleName( )

获取当前运行模块的名字

获取当前运行模块的名字

Returns

mixed

Author

Ring
public static array
# getLangSources( array $langSource = array() , boolean $loadDefault,… )

加载多个语言文件,为空则加载全局$globalLangSource指定的语言文件,有多个则合并

加载多个语言文件,为空则加载全局$globalLangSource指定的语言文件,有多个则合并

Parameters

$langSource
要加载的语言包文件
$loadDefault,…
是否加载当前模块下的默认语言包

Returns

array
合并后的语言数组
public static array
# getLangSource( string $file, string $language,… )

加载当前模块下指定文件的语言包。返回语言包数组

加载当前模块下指定文件的语言包。返回语言包数组

Parameters

$file
语言包文件名
$language,…
当前语言

Returns

array
语言包数组
public static mixed
# engine( )

返回当前平台引擎

返回当前平台引擎

Returns

mixed
public static
# setEngine( object $engine )

设置当前平台引擎,如果已经设置或为空会抛出一个异常

设置当前平台引擎,如果已经设置或为空会抛出一个异常

Parameters

$engine

Throws

CException
IBOS open source API documentation generated by ApiGen