Exemplo n.º 1
0
 /**
  * 加载核心层库函数
  * @return void
  */
 private static function _loadBaseLib()
 {
     self::$LIB_CLASS = array('herosphp\\http\\HttpRequest' => 'http.HttpRequest', 'herosphp\\http\\HttpClient' => 'http.HttpClient', 'herosphp\\core\\WebApplication' => 'core.WebApplication', 'herosphp\\core\\Debug' => 'core.Debug', 'herosphp\\core\\Loader' => 'core.Loader', 'herosphp\\core\\AppError' => 'core.AppError', 'herosphp\\core\\Template' => 'core.Template', 'herosphp\\core\\Controller' => 'core.Controller', 'herosphp\\exception\\HeroException' => 'exception.HeroException', 'herosphp\\exception\\DBException' => 'exception.DBException', 'herosphp\\exception\\UnSupportedOperationException' => 'exception.UnSupportedOperationException', 'herosphp\\files\\FileUtils' => 'files.FileUtils', 'herosphp\\files\\FileUpload' => 'files.FileUpload', 'herosphp\\files\\PHPZip' => 'files.PHPZip', 'herosphp\\utils\\ArrayUtils' => 'utils.ArrayUtils', 'herosphp\\utils\\AjaxResult' => 'utils.AjaxResult', 'herosphp\\utils\\HashUtils' => 'utils.HashUtils', 'herosphp\\utils\\Page' => 'utils.Page', 'herosphp\\string\\StringBuffer' => 'string.StringBuffer', 'herosphp\\string\\StringUtils' => 'string.StringUtils', 'herosphp\\image\\ImageThumb' => 'image.ImageThumb', 'herosphp\\image\\ImageWater' => 'image.ImageWater', 'herosphp\\image\\VerifyCode' => 'image.VerifyCode', 'herosphp\\web\\Smtp' => 'web.Smtp', 'herosphp\\web\\WebUtils' => 'web.WebUtils', 'herosphp\\db\\DBFactory' => 'db.DBFactory', 'herosphp\\db\\mysql\\MysqlQueryBuilder' => 'db.mysql.MysqlQueryBuilder', 'herosphp\\db\\mongo\\MongoQueryBuilder' => 'db.mongo.MongoQueryBuilder', 'herosphp\\model\\C_Model' => 'model.C_Model', 'herosphp\\model\\MongoModel' => 'model.MongoModel', 'herosphp\\lock\\SemSynLock' => 'lock.SemSynLock', 'herosphp\\lock\\FileSynLock' => 'lock.FileSynLock', 'herosphp\\lock\\SynLockFactory' => 'lock.SynLockFactory', 'herosphp\\filter\\Filter' => 'filter.Filter', 'herosphp\\cache\\CacheFactory' => 'cache.CacheFactory', 'herosphp\\cache\\utils\\RedisUtils' => 'cache.utils.RedisUtils', 'herosphp\\bean\\Beans' => 'bean.Beans', 'herosphp\\listener\\WebApplicationListenerMatcher' => 'listener.WebApplicationListenerMatcher', 'herosphp\\session\\Session' => 'session.Session');
     //获取自动加载类配置
     self::$APP_CLASS = Loader::config("autoload");
 }
Exemplo n.º 2
0
 /**
  * 加载核心层库函数
  * @return void
  */
 private static function _loadBaseLib()
 {
     self::$LIB_CLASS = array('herosphp\\http\\HttpRequest' => 'http.HttpRequest', 'herosphp\\http\\HttpClient' => 'http.HttpClient', 'herosphp\\core\\WebApplication' => 'core.WebApplication', 'herosphp\\core\\Debug' => 'core.Debug', 'herosphp\\core\\Loader' => 'core.Loader', 'herosphp\\core\\Template' => 'core.Template', 'herosphp\\core\\Controller' => 'core.Controller', 'herosphp\\exception\\HeroException' => 'exception.HeroException', 'herosphp\\exception\\DBException' => 'exception.DBException', 'herosphp\\utils\\FileUtils' => 'utils.FileUtils', 'herosphp\\utils\\FileUpload' => 'utils.FileUpload', 'herosphp\\utils\\ArrayUtils' => 'utils.ArrayUtils', 'herosphp\\utils\\AjaxResult' => 'utils.AjaxResult', 'herosphp\\utils\\WebUtils' => 'utils.WebUtils', 'herosphp\\utils\\HashUtils' => 'utils.HashUtils', 'herosphp\\utils\\ImageThumb' => 'utils.ImageThumb', 'herosphp\\utils\\ImageWater' => 'utils.ImageWater', 'herosphp\\utils\\Page' => 'utils.Page', 'herosphp\\utils\\PHPZip' => 'utils.PHPZip', 'herosphp\\utils\\Smtp' => 'utils.Smtp', 'herosphp\\utils\\VerifyCode' => 'utils.VerifyCode', 'herosphp\\db\\DBFactory' => 'db.DBFactory', 'herosphp\\db\\SQL' => 'db.SQL', 'herosphp\\model\\C_Model' => 'model.C_Model', 'herosphp\\cache\\CacheFactory' => 'cache.CacheFactory', 'herosphp\\bean\\Beans' => 'bean.Beans', 'herosphp\\listener\\WebApplicationListenerMatcher' => 'listener.WebApplicationListenerMatcher', 'herosphp\\session\\Session' => 'session.Session');
     self::$APP_CLASS = array('admin\\action\\CommonAction' => 'admin.action.CommonAction', 'common\\action\\CommonAction' => 'common.action.CommonAction', 'media\\action\\MediaAction' => 'media.action.MediaAction', 'site\\action\\AbstractAction' => 'site.action.AbstractAction', 'common\\action\\NeedLoginAction' => 'common.action.NeedLoginAction', 'client\\tools\\result\\AbstractResult' => 'common.client.result.AbstractResult', 'client\\tools\\result\\JsonResult' => 'common.client.result.JsonResult', 'client\\tools\\result\\XmlResult' => 'common.client.result.XmlResult');
 }