Example #1
0
 function SecureFile($row, &$page, &$siblings)
 {
     global $FUNCS;
     // call parent
     parent::KUserDefinedField($row, $page, $siblings);
     $this->requires_multipart = 1;
 }
Example #2
0
 function Repeatable($row, &$page, &$siblings)
 {
     // call parent
     parent::KUserDefinedField($row, $page, $siblings);
     // now for own logic
     $this->_fill_cells_info();
 }
Example #3
0
 function validate()
 {
     global $FUNCS;
     if ($this->is_empty()) {
         if ($this->required) {
             return parent::validate();
             // parent will handle custom error message, if any
         } else {
             return true;
         }
     }
     // Validate date
     if ($this->_checkdate($this->data)) {
         // date is ok. Let parent handle custom validators, if any
         return parent::validate();
     }
     $this->err_msg = 'Invalid Date';
     //TODO: localize string
     return false;
 }
Example #4
0
 function render()
 {
     $this->k_type = 'jcropthumb';
     return parent::render();
 }
Example #5
0
 function Socials($row, &$page, &$siblings)
 {
     // call parent
     parent::KUserDefinedField($row, $page, $siblings);
 }