Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • ApiV2Controllers
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Interfaces

  • CategoryFactoryInterface
  • CategoryInterface
  • CategoryListProviderFactoryInterface
  • CategoryListProviderInterface
  • CategoryObjectServiceInterface
  • CategoryReadServiceInterface
  • CategoryRepositoryDeleterInterface
  • CategoryRepositoryInterface
  • CategoryRepositoryReaderInterface
  • CategoryRepositoryWriterInterface
  • CategoryServiceSettingsInterface
  • CategorySettingsInterface
  • CategorySettingsRepositoryInterface
  • CategorySettingsRepositoryReaderInterface
  • CategorySettingsRepositoryWriterInterface
  • CategoryWriteServiceInterface
  • StoredCategoryInterface

Interface CategoryRepositoryInterface

Interface CategoryRepositoryInterface

This interface defines methods for handling the database operations that concern the category records of the database. It provides a layer for more complicated methods that use the writer, reader and deleter.

Direct known implementers

CategoryRepository

Package: Category\Interfaces
Category: System
Located at CoreServices/Category/Repositories/Interfaces/CategoryRepositoryInterface.inc.php

Methods summary

public integer
# add( CategoryInterface $category )

Adds a category.

Adds a category.

Parameters

$category
Category to add.

Returns

integer
Stored id of the passed category.
public CategoryRepositoryInterface
# store( StoredCategoryInterface $category )

Stores a category.

Stores a category.

Parameters

$category
Stored category.

Returns

CategoryRepositoryInterface
Same instance for chained method calls.
public StoredCategoryInterface
# getCategoryById( IdType $categoryId )

Gets a category by the given ID.

Gets a category by the given ID.

Parameters

$categoryId
Category ID.

Returns

StoredCategoryInterface
public CategoryRepositoryInterface
# deleteCategoryById( IdType $categoryId )

Deletes a category by the given ID.

Deletes a category by the given ID.

Parameters

$categoryId
Category ID.

Returns

CategoryRepositoryInterface
Same instance for chained method calls.
public IdCollection
# getCategoryIdsByParentId( IdType $parentId )

Returns all Categories with the provided parent ID.

Returns all Categories with the provided parent ID.

Parameters

$parentId

Returns

IdCollection
API documentation generated by ApiGen