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

  • Application
  • AssetManager
  • Attach
  • AuthManager
  • Browser
  • Cache
  • Category
  • Engine
  • Log
  • MessageSource
  • PerformanceMeasurement
  • PlugManager
  • Request
  • ThemeManager
  • Upgrade
  • Upload

Class AssetManager

CAssetManager
Extended by application\core\components\AssetManager
Namespace: application\core\components
Copyright: Copyright © 2008-2014 IBOS Inc
Author: banyanCheung banyan@ibos.com.cn
Located at system/core/components/AssetManager.php

Methods summary

public type
# getBasePath( )

获取静态资源文件夹所在路径

获取静态资源文件夹所在路径

Returns

type
public
# setBasePath( type $value )

设置静态资源文件夹基本路径

设置静态资源文件夹基本路径

Parameters

$value

Throws

CException
public
# setBaseUrl( type $value )

设置asset URL

设置asset URL

Parameters

$value
public string
# getBaseUrl( )

获取assetUrl

获取assetUrl

Returns

string
public string
# hash( string $path )

生成一个 CRC32的值用于当前的目录路径,这样生成的值会比MD5生成的更不易冲突。 函数使用静态资源文件路径,Yii 版本号与ibos版本号作为生成hash的值

生成一个 CRC32的值用于当前的目录路径,这样生成的值会比MD5生成的更不易冲突。 函数使用静态资源文件路径,Yii 版本号与ibos版本号作为生成hash的值

Parameters

$path
要hash的静态资源文件夹

Returns

string
hash 后的字符串.
public string
# getAssetsUrl( string $module = '' )

获取指定模块或当前模块的静态资源发布地址

获取指定模块或当前模块的静态资源发布地址

Parameters

$module
模块名

Returns

string

Throws

EnvException
public boolean
# republicAll( )

重新发布所有静态资源文件夹

重新发布所有静态资源文件夹

Returns

boolean
IBOS open source API documentation generated by ApiGen