Sets the Commerce Product Category Id attribute value.
@param int $nb_commerce_product_category_id New value for attribute
@return CNabuDataObject Returns self instance to grant chained setters call.
483836
public function setCommerceProductCategoryId(int $nb_commerce_product_category_id) : CNabuDataObject
    {
        if ($nb_commerce_product_category_id === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$nb_commerce_product_category_id")
            );
        }
        $this->setValue('nb_commerce_product_category_id', $nb_commerce_product_category_id);
        
        return $this;
    }
923158
public function setDomainZoneHostId(int $nb_domain_zone_host_id) : CNabuDataObject
    {
        if ($nb_domain_zone_host_id === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$nb_domain_zone_host_id")
            );
        }
        $this->setValue('nb_domain_zone_host_id', $nb_domain_zone_host_id);
        
        return $this;
    }
656071
public function setUseCommerce(string $use_commerce = "F") : CNabuDataObject
    {
        if ($use_commerce === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$use_commerce")
            );
        }
        $this->setValue('nb_site_target_use_commerce', $use_commerce);
        
        return $this;
    }
956670
public function setOSId(int $os_id) : CNabuDataObject
    {
        if ($os_id === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$os_id")
            );
        }
        $this->setValue('nb_cluster_user_group_os_id', $os_id);
        
        return $this;
    }
938727
public function setMessagingServiceId(int $nb_messaging_service_id) : CNabuDataObject
    {
        if ($nb_messaging_service_id === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$nb_messaging_service_id")
            );
        }
        $this->setValue('nb_messaging_service_id', $nb_messaging_service_id);
        
        return $this;
    }
620953
public function ecommerceAddItem($id, $name, $sku = null, $category = null, $price = null, $quantity = null, $currency = null)
    {
        return $this;
    }
538004
public function setCategory($product_category) {
		if(!$this->setModified('category', $product_category)->isModified()) {
			return $this;
		}
		$this->category = $product_category;
		return $this;
	}
188957
public function setCatalogId(int $nb_catalog_id) : CNabuDataObject
    {
        if ($nb_catalog_id === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$nb_catalog_id")
            );
        }
        $this->setValue('nb_catalog_id', $nb_catalog_id);
        
        return $this;
    }
1046057
def set_category(self, category):
        
        # For some reason, packages only have the category name, not the
        # ID.
        if isinstance(category, Category):
            name = category.name
        else:
            name = category
        self.find("category").text = name
217365
public function setTtl(int $ttl = 86400) : CNabuDataObject
    {
        if ($ttl === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$ttl")
            );
        }
        $this->setValue('nb_domain_zone_ttl', $ttl);
        
        return $this;
    }
1063833
public function setCommerceId(int $nb_commerce_id) : CNabuDataObject
    {
        if ($nb_commerce_id === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$nb_commerce_id")
            );
        }
        $this->setValue('nb_commerce_id', $nb_commerce_id);
        
        return $this;
    }
894818
public function setCustomerId(int $nb_customer_id) : CNabuDataObject
    {
        if ($nb_customer_id === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$nb_customer_id")
            );
        }
        $this->setValue('nb_customer_id', $nb_customer_id);
        
        return $this;
    }
806716
def updateproduct(self, category_id, product, position=None):
        
        return bool(self.call(
            'catalog_category.updateProduct', [category_id, product, position])
        )
347819
public function setTranslation(INabuTranslation $nb_translation)
    {
        if ($this->checkForValidTranslationInstance($nb_translation) &&
            ($nb_translation->isValueNumeric(NABU_LANG_FIELD_ID) || $nb_translation->isValueGUID(NABU_LANG_FIELD_ID))
        ) {
            $nb_translation->setTranslatedObject($this);
            $nb_language_id = $nb_translation->getValue(NABU_LANG_FIELD_ID);
            $this->translations_list->addItem($nb_translation);
            if ($this->translations_removed->containsKey($nb_language_id)) {
                $this->translations_removed->removeItem($nb_language_id);
            }
        }

        return $nb_translation;
    }
311800
public function setServerId(int $nb_server_id) : CNabuDataObject
    {
        if ($nb_server_id === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$nb_server_id")
            );
        }
        $this->setValue('nb_server_id', $nb_server_id);
        
        return $this;
    }
84429
public function setIPId(int $nb_ip_id) : CNabuDataObject
    {
        if ($nb_ip_id === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$nb_ip_id")
            );
        }
        $this->setValue('nb_ip_id', $nb_ip_id);
        
        return $this;
    }
798644
public function setIsVirtual(string $is_virtual = "F") : CNabuDataObject
    {
        if ($is_virtual === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$is_virtual")
            );
        }
        $this->setValue('nb_commerce_product_is_virtual', $is_virtual);
        
        return $this;
    }