PHP 클래스 Prado\I18N\core\Gettext\TGettext_MO

GNU MO file reader and writer.
저자: Michael Wallner ([email protected])
상속: extends TGettext
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_handle resource file handle
$writeBigEndian boolean Whether to write with big endian byte order.

공개 메소드들

메소드 설명
__construct ( string $file = '' ) : object Constructor
_read ( integer $bytes = 1 ) : mixed _read
_readInt ( boolean $bigendian = false ) : integer _readInt
_readStr ( array $params ) : string _readStr
_write ( string $data ) : integer _write
_writeInt ( integer $int ) : integer _writeInt
_writeStr ( string $string ) : integer _writeStr
load ( string $file = null ) : mixed Load MO file
save ( string $file = null ) : mixed Save MO file

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $file = '' ) : object
$file string path to GNU MO file
리턴 object File_Gettext_MO

_read() 공개 메소드

_read
public _read ( integer $bytes = 1 ) : mixed
$bytes integer
리턴 mixed

_readInt() 공개 메소드

_readInt
public _readInt ( boolean $bigendian = false ) : integer
$bigendian boolean
리턴 integer

_readStr() 공개 메소드

_readStr
public _readStr ( array $params ) : string
$params array associative array with offset and length of the string
리턴 string

_write() 공개 메소드

_write
public _write ( string $data ) : integer
$data string
리턴 integer

_writeInt() 공개 메소드

_writeInt
public _writeInt ( integer $int ) : integer
$int integer
리턴 integer

_writeStr() 공개 메소드

_writeStr
public _writeStr ( string $string ) : integer
$string string
리턴 integer

load() 공개 메소드

Load MO file
public load ( string $file = null ) : mixed
$file string
리턴 mixed Returns true on success or PEAR_Error on failure.

save() 공개 메소드

Save MO file
public save ( string $file = null ) : mixed
$file string
리턴 mixed Returns true on success or PEAR_Error on failure.

프로퍼티 상세

$_handle 보호되어 있는 프로퍼티

file handle
protected resource $_handle
리턴 resource

$writeBigEndian 보호되어 있는 프로퍼티

Whether to write with big endian byte order.
protected bool $writeBigEndian
리턴 boolean