public __construct ( stdClass $row = null ) | ||
$row | stdClass | Database row result. Default is null to create a new user. |
public function __construct(\stdClass $row = null)
{
$this->initializeAttributes();
if ($row) {
// Load the rest
if (!$this->load($row)) {
$msg = "Failed to load new " . get_class() . " for GUID:" . $row->guid;
throw new \IOException($msg);
}
}
}