Previous Page
key()

Solar_Example_Model_Users_Record
load()

Next Page
locale()

load()

public void load ( array|Solar_Struct $spec, array $cols default NULL )

Loads the struct with data from an array or another struct.

Inherited from Solar_Sql_Model_Record.

Parameters

  • (array|Solar_Struct) $spec: The data to load into the object.
  • (array) $cols: Load only these columns.

Returns

  • (void)

Description

Loads the struct with data from an array or another struct.

Also unserializes columns per the "serialize_cols" model property.

This is a complete override from the parent load() method.