protected function getChildType($child)
 {
     if ($child == 'orders') {
         return 'MAPPED_orders';
     }
     return parent::getChildType();
 }
 public function getChildType($child)
 {
     if ($child = 'operand') {
         return 'Where_Operands';
     }
     return parent::getChildType($child);
 }
 protected function getChildType($child)
 {
     if (in_array($child, $this->getFormNames())) {
         return 'PageXMLRelationship_Form';
     }
     return parent::getChildType($child);
 }
Esempio n. 4
0
 protected function getChildType($child)
 {
     if ($child == 'args') {
         return $this->getArgsHandler();
     }
     return parent::getChildType($child);
 }
 protected function getChildType($child)
 {
     if ($child == 'display_args' || $child == 'sort_fields') {
         return 'ListClass_Meta_List_field_sorter';
     }
     return parent::getChildType($child);
 }
 public function getChildType($child)
 {
     if ($child == 'reporting_functions') {
         return 'FormRelationship_ReportingFunctions';
     }
     return parent::getChildType();
 }
 protected function getChildType($child)
 {
     if ($child == 'child_form_data') {
         return 'Form_child_form_data_displays';
     } else {
         return parent::getChildType($child);
     }
 }
 protected function getChildType($child)
 {
     if ($child == 'lists') {
         return 'SVS_Lists';
     } else {
         return parent::getChildType($child);
     }
 }
 protected function getChildType($child)
 {
     if (in_array($child, array('module', 'static'))) {
         return 'ENUM_method_' . $child;
     } else {
         return parent::getChildType($child);
     }
 }
 protected function getChildType($child)
 {
     if ($child == 'display') {
         return 'REFERENCE_displays';
     } else {
         return parent::getChildType($child);
     }
 }
 protected function getChildType($child)
 {
     if ($child == 'method') {
         return 'ENUM_method';
     } else {
         return parent::getChildType($child);
     }
 }
 protected function getChildType($child)
 {
     $handlers = array();
     if (!is_array($data = I2CE::getConfig()->getAsArray('/modules/form-builder/storage_handlers/' . $child)) || !array_key_exists('swiss', $data) || !is_scalar($swiss = $data['swiss'])) {
         return parent::getChildType($child);
     }
     return $swiss;
 }
 /**
  * Get the swiss child type
  * @param string $child
  * @returns string
  */
 public function getChildType($child)
 {
     switch ($child) {
         case 'xslts':
             return 'XSLTS';
         default:
             return parent::getChildType($child);
     }
 }
 protected function getChildType($child)
 {
     if (in_array($child, self::$childNames)) {
         return 'MAP_' . $child . '_forms';
     }
     if ($child == 'reportSelect') {
         return 'MAP_reportSelect';
     }
     return parent::getChildType($child);
 }
Esempio n. 15
0
 protected function getChildType($child)
 {
     if ($child == 'meta') {
         return 'SVS_Meta';
     } else {
         if ($child == 'where') {
             return 'SVS_Where';
         } else {
             return parent::getChildType($child);
         }
     }
 }
Esempio n. 16
0
 protected function getChildType($child)
 {
     if ($child == 'meta') {
         return 'Form_meta';
     } else {
         if ($child == 'storage_options') {
             return 'Form_storage_options';
         } else {
             return parent::getChildType($child);
         }
     }
 }
 protected function getChildType($child)
 {
     // If the child type is printf_args, return a Printf object
     if ($child == 'printf_args') {
         return 'PageFormAutoView_ChildForm_Printf';
     }
     // If the child type is action_links then return an ActionLinks object
     if ($child == 'action_links') {
         return 'PageFormAutoView_ActionLinks';
     }
     return parent::getChildType($child);
 }
 protected function getChildType($child)
 {
     if ($child == 'forms') {
         return 'FormBuilder';
     } else {
         if ($child == 'formClasses') {
             return 'FormClassBuilder';
         } else {
             return parent::getChildType($child);
         }
     }
 }
 protected function getChildType($child)
 {
     if ($child == 'limits') {
         return 'child_form_data_where';
     } else {
         if ($child == 'order') {
             return 'child_form_data_order';
         } else {
             return parent::getChildType($child);
         }
     }
 }
 protected function getChildType($child)
 {
     if ($child == 'headers') {
         return 'FormField_Headers';
     } else {
         if ($child == 'meta' && $this->hasMeta()) {
             return $this->metaSwiss();
         } else {
             return parent::getChildType($child);
         }
     }
 }
 protected function getChildType($child)
 {
     // If the child is child_forms return a ChildForms object
     if ($child == 'child_forms') {
         return 'PageFormAutoView_ChildForms';
     }
     // If the child is action_links return an ActionLinks object
     if ($child == 'action_links') {
         return 'PageFormAutoView_ActionLinks';
     }
     // If not either type of child, call I2CE_Swiss->getChildType() to determine the child type
     return parent::getChildType($child);
 }
 protected function getChildType($child)
 {
     if ($child == 'meta') {
         return $this->getMetaHandler();
     } else {
         if ($child == 'fields') {
             return 'FormClass_Fields';
         } else {
             return parent::getChildType($child);
         }
     }
 }