Data

Extends\SPSS\Sav\Record

package

Default

Methods

Record constructor.

__construct(array $data = array())
inherited

Arguments

$data

array

close

close(): true|false

Response

true|false

create

create(array $data = array()): static
inheritedstatic

Arguments

$data

array

Response

static

fill

fill(\SPSS\Buffer $buffer,array $data = array()): static
inheritedstatic

Arguments

$buffer

\SPSS\Buffer

$data

array

Response

static

getRow

getRow(): array

Response

array

read

read(\SPSS\Buffer $buffer)

Arguments

$buffer

\SPSS\Buffer

readCase

readCase(\SPSS\Buffer $buffer,integer $case): void

Arguments

$buffer

\SPSS\Buffer

$case

integer

readCaseData

readCaseData(\SPSS\Buffer $buffer,boolean $compressed,integer $bias,array $variables,array $veryLongStrings,integer $sysmis): array

Arguments

$buffer

\SPSS\Buffer

$compressed

boolean

$bias

integer

$variables

array

$veryLongStrings

array

$sysmis

integer

Response

array

readOpcode

readOpcode(\SPSS\Buffer $buffer): integer

Arguments

$buffer

\SPSS\Buffer

Response

integer

toArray

toArray(): array
inherited

Response

array

write

write(\SPSS\Buffer $buffer)

Arguments

$buffer

\SPSS\Buffer

writeCase

writeCase(\SPSS\Buffer $buffer, $row)

Arguments

$buffer

\SPSS\Buffer

$row

writeCaseData

writeCaseData(\SPSS\Buffer $buffer,array $row,boolean $compressed,integer $bias,array $variables,array $veryLongStrings,integer $sysmis): void

Arguments

$buffer

\SPSS\Buffer

$row

array

$compressed

boolean

$bias

integer

$variables

array

$veryLongStrings

array

$sysmis

integer

writeOpcode

writeOpcode(\SPSS\Buffer $buffer,integer $opcode)

Arguments

$buffer

\SPSS\Buffer

$opcode

integer

Constants

TYPE

TYPE

No-operation. This is simply ignored.

OPCODE_NOP

End-of-file.

OPCODE_EOF

Verbatim raw data. Read an 8-byte segment of raw data.

OPCODE_RAW_DATA

Compressed whitespaces. Expand to an 8-byte segment of whitespaces.

OPCODE_WHITESPACES

Compressed sysmiss value. Expand to an 8-byte segment of SYSMISS value.

OPCODE_SYSMISS

Properties

[case_index][var_index]

matrix :array
var

[case_index][var_index]

Type(s)

array

[var_index]

row :array
var

[var_index]

Type(s)

array

Latest opcodes data

opcodes :array
var

Latest opcodes data

Type(s)

array

Current opcode index

opcodeIndex :integer
var

Current opcode index

Type(s)

integer

Position where the data start

startData :integer
var

Position where the data start

Type(s)

integer

Temporary buffer

dataBuffer :\SPSS\Buffer
var

Temporary buffer

Type(s)

\SPSS\Buffer