TripalTerm.inc 435 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * A class the controller will use for instantiating the TripalTerm entity.
  4. */
  5. class TripalTerm extends Entity {
  6. public function __construct($values = array()) {
  7. parent::__construct($values, $entity_type);
  8. }
  9. protected function defaultLabel() {
  10. return $this->name;
  11. }
  12. protected function defaultUri() {
  13. $vocab = 'TODO';
  14. return array('path' => '/vocabulary/' . $vocab . '/term/' . $this->id);
  15. }
  16. }