PHP Class Writer, zys

Inheritance: extends CI_Model
Show file Open project: qieangel2013/zys Class Usage Examples

Public Properties

Property Type Description
$stream

Public Methods

Method Description
__construct ( BytesIO $stream, $simple = false )
reset ( )
serialize ( $val )
writeArray ( array $array )
writeAssocArray ( array $map )
writeBoolean ( $bool )
writeBytes ( $bytes )
writeBytesIO ( BytesIO $bytes )
writeBytesIOWithRef ( BytesIO $bytes )
writeBytesWithRef ( $bytes )
writeDateTime ( DateTime $datetime )
writeDateTimeWithRef ( DateTime $datetime )
writeDouble ( $double )
writeEmpty ( )
writeInfinity ( $positive = true )
writeInteger ( $int )
writeList ( Traversable $list )
writeListWithRef ( Traversable $list )
writeLong ( $long )
writeMap ( SplObjectStorage $map )
writeMapWithRef ( SplObjectStorage $map )
writeNaN ( )
writeNull ( )
writeObject ( $obj )
writeObjectWithRef ( $obj )
writeStdClass ( stdClass $obj )
writeStdClassWithRef ( stdClass $obj )
writeString ( $str )
writeStringWithRef ( $str )
writeUTF8Char ( $char )

Protected Methods

Method Description
writeClass ( $alias, array $props )

Private Methods

Method Description
isList ( array $a )
isUTF8 ( $s )
ustrlen ( $s )

Method Details

__construct() public method

public __construct ( BytesIO $stream, $simple = false )
$stream BytesIO

reset() public method

public reset ( )

serialize() public method

public serialize ( $val )

writeArray() public method

public writeArray ( array $array )
$array array

writeAssocArray() public method

public writeAssocArray ( array $map )
$map array

writeBoolean() public method

public writeBoolean ( $bool )

writeBytes() public method

public writeBytes ( $bytes )

writeBytesIO() public method

public writeBytesIO ( BytesIO $bytes )
$bytes BytesIO

writeBytesIOWithRef() public method

public writeBytesIOWithRef ( BytesIO $bytes )
$bytes BytesIO

writeBytesWithRef() public method

public writeBytesWithRef ( $bytes )

writeClass() protected method

protected writeClass ( $alias, array $props )
$props array

writeDateTime() public method

public writeDateTime ( DateTime $datetime )
$datetime DateTime

writeDateTimeWithRef() public method

public writeDateTimeWithRef ( DateTime $datetime )
$datetime DateTime

writeDouble() public method

public writeDouble ( $double )

writeEmpty() public method

public writeEmpty ( )

writeInfinity() public method

public writeInfinity ( $positive = true )

writeInteger() public method

public writeInteger ( $int )

writeList() public method

public writeList ( Traversable $list )
$list Traversable

writeListWithRef() public method

public writeListWithRef ( Traversable $list )
$list Traversable

writeLong() public method

public writeLong ( $long )

writeMap() public method

public writeMap ( SplObjectStorage $map )
$map SplObjectStorage

writeMapWithRef() public method

public writeMapWithRef ( SplObjectStorage $map )
$map SplObjectStorage

writeNaN() public method

public writeNaN ( )

writeNull() public method

public writeNull ( )

writeObject() public method

public writeObject ( $obj )

writeObjectWithRef() public method

public writeObjectWithRef ( $obj )

writeStdClass() public method

public writeStdClass ( stdClass $obj )
$obj stdClass

writeStdClassWithRef() public method

public writeStdClassWithRef ( stdClass $obj )
$obj stdClass

writeString() public method

public writeString ( $str )

writeStringWithRef() public method

public writeStringWithRef ( $str )

writeUTF8Char() public method

public writeUTF8Char ( $char )

Property Details

$stream public property

public $stream