Tripal
Public Member Functions | Protected Member Functions | List of all members
TripalEntity Class Reference
Inheritance diagram for TripalEntity:
Inheritance graph
[legend]
Collaboration diagram for TripalEntity:
Collaboration graph
[legend]

Public Member Functions

 __construct ($values=[], $entity_type=NULL)
 
 save ($cache=[])
 

Protected Member Functions

 defaultLabel ()
 
 defaultUri ()
 

Detailed Description

A class the controller will use for instantiating the TripalEntity entity.

Member Function Documentation

◆ save()

TripalEntity::save (   $cache = [])

Permanently saves the entity.

Parameters
$cacheThis 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: