Adds category specific fields to vendor object

@param object $oVendor vendor object
176854
protected function _addCategoryFields($oVendor)
    {
        $oVendor->oxcategories__oxid = new \OxidEsales\Eshop\Core\Field("v_" . $oVendor->oxvendor__oxid->value);
        $oVendor->oxcategories__oxicon = $oVendor->oxvendor__oxicon;
        $oVendor->oxcategories__oxtitle = $oVendor->oxvendor__oxtitle;
        $oVendor->oxcategories__oxdesc = $oVendor->oxvendor__oxshortdesc;

        $oVendor->setIsVisible(true);
        $oVendor->setHasVisibleSubCats(false);
    }
125209
public function addManufacturer()
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();

        $articleIds = $this->_getActionIds('oxarticles.oxid');
        $manufacturerId = $config->getRequestParameter('synchoxid');

        if ($config->getRequestParameter('all')) {
            $articleViewName = $this->_getViewName('oxarticles');
            $articleIds = $this->_getAll($this->_addFilter("select $articleViewName.oxid " . $this->_getQuery()));
        }

        if ($manufacturerId && $manufacturerId != "-1" && is_array($articleIds)) {
            $database = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

            $query = $this->formArticleToManufacturerAdditionQuery($manufacturerId, $articleIds);
            $database->execute($query);
            $this->resetCounter("manufacturerArticle", $manufacturerId);
        }
    }
789412
public function overrideCategory(CategoryOverrideMessage $message): Category
    {
        $path = sprintf('sites/%d/categories/%d/override', $message->getSiteId(), $message->getId());

        $response = $this->getClient()->sendRequest(RequestStatus::GET, $path);

        /** @var Category $model */
        $model = $this->getModelFactory()->create(Category::class, $response);

        return $model;
    }
1234228
public function addObjects($arrObjects, $blnAddToBeginning = false)
    {
        foreach ($arrObjects as $varObject) {
            $this->addObject($varObject, $blnAddToBeginning);
        }
    }
776753
public function addAmateurDescription(\Librinfo\VarietiesBundle\Entity\VarietyDescriptionAmateur $amateurDescription)
    {
        $this->amateur_descriptions[] = $amateurDescription;

        return $this;
    }
1129502
protected function addCategoryData($iCategoryID, $bActiveCategory = false)
    {
        $obCategoryItem = CategoryItem::make($iCategoryID);
        if ($obCategoryItem->isEmpty()) {
            return;
        }

        $this->arResult[] = [
            'id'     => $obCategoryItem->id,
            'name'   => $obCategoryItem->name,
            'slug'   => $obCategoryItem->slug,
            'active' => $bActiveCategory,
            'item'   => $obCategoryItem,
        ];

        if (!empty($obCategoryItem->parent_id)) {
            $this->addCategoryData($obCategoryItem->parent_id);
        }
    }
740192
protected function registerCategoryProvider()
	{
		$this->app['categorize.category'] = $this->app->share(function($app)
		{
			$model = $app['config']->get('categorize::categories.model');

			return new CategoryProvider($model);
		});
	}
418
protected function _generateVendorDir($sVendor)
    {
        $sVendorDir = $this->_sModuleDir . $sVendor . DIRECTORY_SEPARATOR;
        if (!file_exists($sVendorDir)) {
            mkdir($sVendorDir);

            // Generate vendor metadata file
            file_put_contents($sVendorDir . 'vendormetadata.php', '<?php');
        }
    }
703236
public static MozuUrl addProductsToCategoryUrl(Integer categoryId)
	{
		UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/categories/{categoryId}/add-products");
		formatter.formatUrl("categoryId", categoryId);
		return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;
	}
886692
public function addCategory(\Haven\CoreBundle\Entity\Category $categories)
    {
        $this->categories[] = $categories;
    
        return $this;
    }
117066
public function addItem(BaseField $objItem)
    {
        $this->items[] = $objItem;
        end($this->items);
        $key = key($this->items);
        $this->index[$key] = $objItem->get('colName');
    }
538004
public function setCategory($product_category) {
		if(!$this->setModified('category', $product_category)->isModified()) {
			return $this;
		}
		$this->category = $product_category;
		return $this;
	}
710449
public function addToRatingAverage($iRating)
    {
        $dOldRating = $this->oxrecommlists__oxrating->value;
        $dOldCnt = $this->oxrecommlists__oxratingcnt->value;
        $this->oxrecommlists__oxrating = new \OxidEsales\Eshop\Core\Field(($dOldRating * $dOldCnt + $iRating) / ($dOldCnt + 1), \OxidEsales\Eshop\Core\Field::T_RAW);
        $this->oxrecommlists__oxratingcnt = new \OxidEsales\Eshop\Core\Field($dOldCnt + 1, \OxidEsales\Eshop\Core\Field::T_RAW);
        $this->save();
    }
256876
private function unserializeProductPositions(\Magento\Catalog\Model\Category $category)
    {
        $productPositions = $category->getSortedProducts() ? $category->getSortedProducts() : [];

        if (is_string($productPositions)) {
            try {
                $productPositions = $this->jsonHelper->jsonDecode($productPositions);
            } catch (\Exception $e) {
                $productPositions = [];
            }
        }

        $category->setSortedProducts($productPositions);

        return $this;
    }
649625
private function addSelectedProducts(CategoryInterface $category)
    {
        $selectedProducts = $this->getRequest()->getParam('selected_products', []);

        $addedProducts = isset($selectedProducts['added_products']) ? $selectedProducts['added_products'] : [];
        $category->setAddedProductIds($addedProducts);

        $deletedProducts = isset($selectedProducts['deleted_products']) ? $selectedProducts['deleted_products'] : [];
        $category->setDeletedProductIds($deletedProducts);

        return $this;
    }
657660
public function addListener($category, Subscriber $subscriber)
    {
        $this->subscriptions[] = new Subscription($category, $subscriber);

        $message = sprintf(self::FMT_DBG_REG_SUBSCRIBER, get_class($subscriber), $category);
        $this->logger->debug($message);
    }
462321
public function updateOrCreateOption($categoryKey, $optionKey, $value)
    {
        $this->validateName($optionKey);
        $this->validateValue($value);

        $this->requireCategoryExists($categoryKey);

        $this->optionModel->updateOrCreate(['category_key' => $categoryKey, 'key' => $optionKey], ['value' => $value]);
        $this->refresh();
        $this->options[$categoryKey][$optionKey] = $value;
    }