TripalData.inc 401 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * A class the controller will use for instantiating the TripalData entity.
  4. */
  5. class TripalData 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' => 'data/' . $this->id);
  14. }
  15. }