PageCategory
class PageCategory extends AbstractStandardCategory (View source)
Traits
Properties
protected | $entityManager | from AbstractCategory | |
protected | $entity | from AbstractCategory | |
protected | $application | from AbstractCategory | |
protected | $setManager | from AbstractCategory | |
protected | $categoryEntity | from StandardCategoryTrait |
Methods
Get the repository for the attribute keys.
Get the repository for the attribute values.
Create a new attribute key.
Run when a key is deleted. 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.
Get the name of the indexing table (return false if there's no indexing table).
Get the value of the primary key column of the indexing table that identifies the object to be indexed.
Get the definition of the indexing table, excluding attribute-related fields (return false if there's no indexing table).
Get all the generic attribute values for an object instance.
Details
__construct(Application $application, EntityManager $entityManager)
No description
SearchIndexerInterface|null
getSearchIndexer()
No description
EntityRepository
getAttributeKeyRepository()
Get the repository for the attribute keys.
EntityRepository
getAttributeValueRepository()
Get the repository for the attribute values.
Key
createAttributeKey()
Create a new attribute key.
getByID($akID)
No description
getByHandle($akHandle)
No description
getList()
No description
getSearchableList()
No description
getSearchableIndexedList()
No description
getAttributeKeyByHandle($handle)
No description
getAttributeKeyByID($akID)
No description
delete()
No description
add($type, $key, $settings = null, $pkg = null)
No description
addFromRequest(Type $type, Request $request)
No description
import(Type $type, SimpleXMLElement $element, Package $package = null)
No description
updateFromRequest(Key $key, Request $request)
No description
abstract
getEntityManager()
No description
setEntityManager(EntityManager $entityManager)
No description
mixed
deleteKey(Key $key)
Run when a key is deleted. 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 $attributeValue)
No description
getRequestLoader()
No description
getImportLoader()
No description
setCategoryEntity(Category $category)
No description
getCategoryEntity()
No description
getSetManager()
No description
addSet($handle, $name, $pkg = null, $locked = null)
deprecated
deprecated
No description
getAttributeTypes()
No description
associateAttributeKeyType(Type $type)
No description
string|false
getIndexedSearchTable()
Get the name of the indexing table (return false if there's no indexing table).
mixed
getIndexedSearchPrimaryKeyValue(object $mixed)
Get the value of the primary key column of the indexing table that identifies the object to be indexed.
array|false
getSearchIndexFieldDefinition()
Get the definition of the indexing table, excluding attribute-related fields (return false if there's no indexing table).
The resulting array can have these keys:
- columns: an array describing the table columns
- primary: an array containing the names of the columns that define the table primary key
- foreignKeys: an array describing the foreign keys.
AttributeValueInterface[]
getAttributeValues($page)
Get all the generic attribute values for an object instance.
AttributeValueInterface|null
getAttributeValue(Key $key, $page)
Get the generic attribute value of an object for a specific key.