24 require_once
'HypertableConnection.php';
25 require_once
'Profile.php';
30 public function load($id) {
33 if (!$result or !count($result->cells))
37 $profile->setDisplayName($result->cells[1]->value);
38 $profile->setPasswordMd5($result->cells[2]->value);
39 $profile->setEmail($result->cells[3]->value);
40 $profile->setAvatar($result->cells[4]->value);
41 $profile->setLocation($result->cells[5]->value);
42 $profile->setWebpage($result->cells[6]->value);
43 $profile->setBio($result->cells[7]->value);
48 public function store($profile) {
50 $profile->getDisplayName());
52 $profile->getPassword());
54 $profile->getEmail());
56 $profile->getAvatar());
58 $profile->getLocation());
62 $profile->getWebpage());
75 $profile->setGuid($guid);
76 $profile->setId($username);
79 catch (Exception $e) {
static insert($table, $row, $column, $value, $timestamp=0)
Copyright (C) 2007-2015 Hypertable, Inc.
Copyright (C) 2007-2015 Hypertable, Inc.
static create_cell_unique($table, $row, $cf)