예제 #1
0
 /**
  * constructor
  */
 public function __construct($sid = null, $data = null)
 {
     if ($sid) {
         $this->sid = $sid;
     } else {
         $uidObj = CalemFactory::getUidGen();
         $this->sid = $uidObj->getUid();
     }
     if ($data) {
         $this->data = $data;
     } else {
         $this->data = array('sid' => $this->sid);
     }
 }
예제 #2
0
 public function getUid()
 {
     $uidObj = CalemFactory::getUidGen();
     return $uidObj->getUid();
 }