Ejemplo n.º 1
0
 function p_new()
 {
     $this->AssetPool = $this->plugin_data['AssetPool'];
     $this->AssetQty = $this->plugin_data['AssetQty'];
     if (!empty($this->prod_attr_cart['AssetId'])) {
         $this->AssetId = $this->prod_attr_cart['AssetId'];
     }
     include_once PATH_MODULES . 'asset/asset.inc.php';
     $asset = new asset();
     if (!$this->AssetId) {
         for ($i = 0; $i < $this->AssetQty; $i++) {
             $asset->assign($this->service['id'], $this->AssetPool);
         }
     } else {
         $asset->assignKnown($this->service['id'], $this->AssetId);
     }
     return true;
 }