예제 #1
0
 protected function createDummyKShow()
 {
     $kshow = new kshow();
     $kshow->setName(kshow::DUMMY_KSHOW_NAME);
     $kshow->setProducerId($this->getKuser()->getId());
     $kshow->setPartnerId($this->getPartnerId());
     $kshow->setSubpId($this->getPartnerId() * 100);
     $kshow->setViewPermissions(kshow::KSHOW_PERMISSION_EVERYONE);
     $kshow->setPermissions(kshow::PERMISSIONS_PUBLIC);
     $kshow->setAllowQuickEdit(true);
     $kshow->save();
     return $kshow;
 }