ph = new PasswordHash(8, FALSE); } public function createUser($email, $passwd) { $userArray = $this->getOne(array('where' => 'uemail=?', 'param' => array($email), 'asArray' => TRUE)); if (isset($userArray['uid'])) { return FALSE; } $this->uemail = $email; $this->upass = $this->ph->HashPassword($passwd); $this->intime = time(); return $this->insert(); } public function getRowAll() { return $this->find(array('asArray' => TRUE)); } } ?>