CategoryInterface
interface CategoryInterface (View source)
The interface that any attribute category must implement.
Methods
Get an attribute key given its ID.
Get an attribute key given its handle.
Get all the attribute keys.
Get the set manager.
Get the attribute types.
Get the indexer instance that manages search indexing (if the attribute category supports indexing).
Create a new attribute key starting from the data contained in a request.
Update an existing attribute key with the data contained in a request.
Get all the generic attribute values for an object instance.
Get the generic attribute value of an object for a specific key.
Delete this category and all the associated attribute keys.
Details
        
                            AttributeKeyInterface|null
    getAttributeKeyByID(int $akID)
        
    
    Get an attribute key given its ID.
        
                            AttributeKeyInterface|null
    getAttributeKeyByHandle(string $akHandle)
        
    
    Get an attribute key given its handle.
        
                            AttributeKeyInterface[]
    getList()
        
    
    Get all the attribute keys.
        
                            SetManagerInterface
    getSetManager()
        
    
    Get the set manager.
        
                            ArrayCollection|Type[]
    getAttributeTypes()
        
    
    Get the attribute types.
        
                            SearchIndexerInterface|null
    getSearchIndexer()
        
    
    Get the indexer instance that manages search indexing (if the attribute category supports indexing).
        
                            Key
    addFromRequest(Type $type, Request $request)
        
    
    Create a new attribute key starting from the data contained in a request.
        
                            Key
    updateFromRequest(Key $key, Request $request)
        
    
    Update an existing attribute key with the data contained in a request.
        
                            AttributeValueInterface[]
    getAttributeValues(ObjectInterface $object)
        
    
    Get all the generic attribute values for an object instance.
        
                            AttributeValueInterface|null
    getAttributeValue(Key $key, ObjectInterface $object)
        
    
    Get the generic attribute value of an object for a specific key.
        
                            
    deleteKey(Key $key)
        
    
    Method called when a key is deleted. This is usually used to delete all the values associated to an attribute key.
Note: this does NOT delete the source key entity. That is done simply by removing the key through Doctrine. Doctrine then calls the Concrete\Core\Attribute\Key\Listener::preRemove method, which runs this.
        
                            
    deleteValue(AttributeValueInterface $value)
        
    
    Delete an attribute value.
        
                            
    delete()
        
    
    Delete this category and all the associated attribute keys.