UserTable::load PHP Method

load() public method

So far there's no Database operation involved
public load ( $userid )
  public function load($userid) {
    $user=new User();
    $user->setId($userid);
    return $user;
  }

Usage Example

Exemplo n.º 1
0
 public function store($tweet, $author) {
   if (!$tweet->getId())
     $tweet->createId($author);
   HypertableConnection::insert('tweet', $tweet->getId(), 'message',
           $tweet->getMessage());
   $u=UserTable::load($author);
   $u->sendTweet($tweet);
   return true;
 }
All Usage Examples Of UserTable::load
UserTable