Advertisement
Guest User

Untitled

a guest
Sep 9th, 2013
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. <?php
  2. /**
  3. * EditableTextField
  4. *
  5. * This control represents a user-defined text field in a user defined form
  6. *
  7. * @package userforms
  8. */
  9.  
  10. class EditableTamarikiBirthField extends EditableFormField {
  11.  
  12. private static $singular_name = 'Tamariki Birth Field';
  13.  
  14. private static $plural_name = 'Tamariki Birth Fields';
  15.  
  16. public function getFieldConfiguration() {
  17. $fields = parent::getFieldConfiguration();
  18.  
  19. return $fields;
  20. }
  21.  
  22. /**
  23. * @return TextareaField|TextField
  24. */
  25. public function getFormField() {
  26. echo "getFormField";
  27.  
  28. return CompositeField::create(
  29. new TextField($this->Name.'-', $this->Title),
  30. new TextField($this->Name.'-', $this->Title),
  31. new DateField($this->Name.'-', $this->Title),
  32. new TextField($this->Name.'-', $this->Title)
  33. );
  34.  
  35. }
  36.  
  37. /**
  38. * Return the validation information related to this field. This is
  39. * interrupted as a JSON object for validate plugin and used in the
  40. * PHP.
  41. *
  42. * @see http://docs.jquery.com/Plugins/Validation/Methods
  43. * @return array
  44. */
  45. public function getValidation() {
  46. $options = array();
  47.  
  48.  
  49.  
  50. return $options;
  51. }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement