Advertisement
Guest User

Untitled

a guest
Aug 17th, 2013
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1. <?php
  2.  
  3. class Capitalsource {
  4.     private $id;
  5.     private $user;
  6.     private $type;
  7.     private $state;
  8.     private $accountNumber;
  9.     private $bankCode;
  10.     private $comment;
  11.     private $validTil;
  12.     private $validFrom;
  13.     private $groupUse;
  14.  
  15.     public function __construct($id,$user) {
  16.         $this->id = $id;
  17.         $this->user = $user;
  18.     }
  19.  
  20. }
  21.  
  22. $yac = new Yac();
  23.  
  24. $user=new Capitalsource(-1,NULL);
  25. for($i=0;$i < 1024 ; $i++ ) {
  26.    if(!$yac->get('hugo'.$i)) {
  27.     $user = new Capitalsource($i,$user);
  28.     $yac->set(('hugo'.$i),$user);
  29.    }
  30. }
  31. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement