Guest User

Untitled

a guest
Sep 18th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.26 KB | None | 0 0
  1. diff --git a/classes/DataBuilder/Object/Personnel/PersonnelQuestions.php b/classes/DataBuilder/Object/Personnel/PersonnelQuestions.php
  2. new file mode 100644
  3. index 0000000..7548a26
  4. --- /dev/null
  5. +++ b/classes/DataBuilder/Object/Personnel/PersonnelQuestions.php
  6. @@ -0,0 +1,40 @@
  7. +<?php
  8. +/**
  9. + * Session Personnel Question
  10. + * @author Rahul Bhandari <rahul.bhandari@hytechpro.com>
  11. + *
  12. + */
  13. +
  14. +class DataBuilder_Object_Personnel_PersonnelQuestions extends DataBuilder_Object_Questions {
  15. +   /**
  16. +    * Return the name in the objectType column for this particular class of
  17. +    * additional questions
  18. +    *
  19. +    * @return string
  20. +    */
  21. +   public function getObjectType() {
  22. +       return 'SessionManagementPersonnel';
  23. +   }
  24. +
  25. +   /**
  26. +    * Return the name of the object this additional question references.
  27. +    * This is the object alias that comes after 'DataBuilder_Object' in the
  28. +    * class name
  29. +    *
  30. +    * @return string
  31. +    */
  32. +   public function getObjectTarget() {
  33. +       return 'Personnel_Personnel';
  34. +   }
  35. +
  36. +   /**
  37. +    * Return the alias of the column from getObjectTable() that objectID refers to
  38. +    * (i.e. RecordID)
  39. +    *
  40. +    * @return string
  41. +    * @see $this->setObjectLinks()
  42. +    */
  43. +   public function getObjectKey() {
  44. +     return 'RecordID';
  45. +   }
  46. +}
  47. \ No newline at end of file
Add Comment
Please, Sign In to add comment