|
| __construct ($values=[], $entity_type=NULL) |
|
| save ($cache=[]) |
|
|
| defaultLabel () |
|
| defaultUri () |
|
A class the controller will use for instantiating the TripalEntity entity.
◆ save()
TripalEntity::save |
( |
|
$cache = [] | ) |
|
Permanently saves the entity.
- Parameters
-
$cache | This array is used to store objects you want to cache for performance reasons, as well as, cache related options. The following are supported:
- boolean $clear_cached_fields Clearing cached fields is NECESSARY. IF you choose to set this to false then YOU must clear the cache yourself using cache_clear_all('field:TripalEntity:[entity_id]', 'cache_field', TRUE). The only known reason to set this to FALSE is to clear the cache in bulk for perfomance reasons.
- TripalBundle $bundle The bundle for the current entity.
- TripalTerm $term The term for the current entity.
|
- See also
- entity_save()
The documentation for this class was generated from the following file:
- tripal/includes/TripalEntity.inc