phpDocumentor i18n
[ class tree: i18n ] [ index: i18n ] [ all elements ]

Class: WindLangResource

Source Location: /i18n/WindLangResource.php

Class WindLangResource

Class Overview

Implements interfaces:

语言资源基础实现

语言资源基础实现,支持ini格式语言资源类型的解析,该语言资源组件基于wind组件模式进行开发. 实现了语言包路径,默认语言文件,语言内容缓存等功能.

Located in /i18n/WindLangResource.php [line 19]

WindModule
   |
   --WindLangResource
Author(s): API Tags:
Example:  example not found

Information Tags:
Version:  $Id: WindLangResource.php 3330 2012-01-15 13:49:24Z yishuo $
Copyright:  ©2003-2103 phpwind.com
License:  http://www.windframework.com

Properties

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From WindModule

WindModule::$_config
WindModule::$_proxy
WindModule::$_typeValidation

Inherited From WindModule

WindModule::getConfig()
根据配置名取得相应的配置
WindModule::getRequest()
返回当前应用的WindHttpRequest对象
WindModule::getResponse()
返回当前应用的WindHttpResponse对象
WindModule::getSystemFactory()
返回当前应用的WindFactory对象
WindModule::setConfig()
设置类配置
WindModule::setDelayAttributes()
设置延迟加载类属性相关组件配置信息
WindModule::toArray()
返回该对象的数组类型
WindModule::writeTableCloneProperty()
类对象clone白名单
WindModule::__call()
重载了魔术方法__call
WindModule::__clone()
重载魔术方法__clone
WindModule::__get()
重载了魔术方法__get
WindModule::__set()
重载了魔术方法__set

[ Top ]
Property Summary
string   $default   默认资源文件
string   $language   语言
WindLocale   $locale  
string   $path   语言包目录
string   $suffix   资源文件后缀名定义
string   $_cachePrefix   缓存key前缀
array   $_messages   消息存储池

[ Top ]
Method Summary
void   getMessage()  
string   resolvedPath()   解析资源文件路径信息
void   setConfig()  
string   translate()   获取一条message信息

[ Top ]
Properties
string   $default [line 37]

默认资源文件

API Tags:
Access:  protected


[ Top ]
string   $language [line 55]

语言

API Tags:
Access:  protected


[ Top ]
WindLocale   $locale = null [line 60]
API Tags:
Access:  protected


[ Top ]
string   $path [line 49]

语言包目录

API Tags:
Access:  protected


[ Top ]
string   $suffix [line 43]

资源文件后缀名定义

API Tags:
Access:  protected


[ Top ]
string   $_cachePrefix = 'Wind.i18n.WindLangResource' [line 25]

缓存key前缀

API Tags:
Access:  protected


[ Top ]
array   $_messages = array() [line 31]

消息存储池

API Tags:
Access:  protected


[ Top ]
Methods
getMessage  [line 65]

  void getMessage( $message, [ $params = array()]  )

Parameters:
   $message: 
   $params: 

API Tags:
Access:  public


Implementation of:
IWindLangResource::getMessage()
翻译接口

[ Top ]
resolvedPath  [line 111]

  string resolvedPath( string $package  )

解析资源文件路径信息

Parameters:
string   $package: 

API Tags:
Access:  protected


[ Top ]
setConfig  [line 122]

  void setConfig( $config  )

Parameters:
   $config: 

API Tags:
Access:  public


Redefinition of:
WindModule::setConfig()
设置类配置

[ Top ]
translate  [line 76]

  string translate( $message, array $messages  )

获取一条message信息

Parameters:
array   $messages: 
   $message: 

API Tags:
Access:  protected


[ Top ]

Documentation generated on Fri, 30 Mar 2012 11:43:36 +0800 by phpDocumentor 1.4.4