UserCategory
class UserCategory 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.
Create a new attribute key starting from the data contained in a request.
Import a new attribute key from a SimpleXMLElement instance.
Update an existing attribute key with the data contained in a request.
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).
No description
No description
No description
No description
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
Key
addFromRequest(Type $type, Request $request)
Create a new attribute key starting from the data contained in a request.
Key
import(Type $type, SimpleXMLElement $element, Package $package = null)
Import a new attribute key from a SimpleXMLElement instance.
Key
updateFromRequest(Key $key, Request $request)
Update an existing attribute key with the data contained in a request.
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.
getMemberListList()
No description
getPublicProfileList()
No description
getRegistrationList()
No description
getEditableInProfileList()
No description
AttributeValueInterface[]
getAttributeValues($user)
Get all the generic attribute values for an object instance.
AttributeValueInterface|null
getAttributeValue(Key $key, $user)
Get the generic attribute value of an object for a specific key.