Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * EditableTextField
- *
- * This control represents a user-defined text field in a user defined form
- *
- * @package userforms
- */
- class EditableTamarikiBirthField extends EditableFormField {
- private static $singular_name = 'Tamariki Birth Field';
- private static $plural_name = 'Tamariki Birth Fields';
- public function getFieldConfiguration() {
- $fields = parent::getFieldConfiguration();
- return $fields;
- }
- /**
- * @return TextareaField|TextField
- */
- public function getFormField() {
- echo "getFormField";
- return CompositeField::create(
- new TextField($this->Name.'-', $this->Title),
- new TextField($this->Name.'-', $this->Title),
- new DateField($this->Name.'-', $this->Title),
- new TextField($this->Name.'-', $this->Title)
- );
- }
- /**
- * Return the validation information related to this field. This is
- * interrupted as a JSON object for validate plugin and used in the
- * PHP.
- *
- * @see http://docs.jquery.com/Plugins/Validation/Methods
- * @return array
- */
- public function getValidation() {
- $options = array();
- return $options;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement