TripalEntity.inc

File

tripal/includes/TripalEntity.inc
View source
  1. <?php
  2. /**
  3. * A class the controller will use for instantiating the TripalEntity entity.
  4. */
  5. class TripalEntity extends Entity {
  6. public function __construct($values = array(), $entity_type) {
  7. parent::__construct($values, $entity_type);
  8. }
  9. protected function defaultLabel() {
  10. return $this->title;
  11. }
  12. protected function defaultUri() {
  13. return array('path' => 'TripalEntity/' . $this->id);
  14. }
  15. }