class TripalEntity

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

Hierarchy

Expanded class hierarchy of TripalEntity

103 string references to 'TripalEntity'
chado_publish_records in tripal_chado/api/tripal_chado.api.inc
Publishes content in Chado as a new TripalEntity entity.
TripalBundleController::delete in tripal/includes/TripalBundleController.inc
Overrides the parent delete function.
TripalContentService_v0_1::addDocBundleFieldProperties in tripal_ws/includes/TripalWebService/TripalContentService_v0_1.inc
Every content type (bundle) has fields that need to be set as properties.
TripalContentService_v0_1::addEntityField in tripal_ws/includes/TripalWebService/TripalContentService_v0_1.inc
Adds the field as a property of the entity resource.
TripalContentService_v0_1::addEntityFields in tripal_ws/includes/TripalWebService/TripalContentService_v0_1.inc
Adds the fields as properties of an entity resource.

... See full list

File

tripal/includes/TripalEntity.inc, line 5

View source
class TripalEntity extends Entity {
  public function __construct($values = array(), $entity_type) {
    parent::__construct($values, $entity_type);
  }

  protected function defaultLabel() {
    return $this->title;
  }

  protected function defaultUri() {
    return array('path' => 'TripalEntity/' . $this->id);
  }

}

Members

Contains filters are case sensitive