public static function updateComponentSettings($type, $member, $input_object, $_model = null)
 {
     $modeler = static::$modeler;
     $kit = static::$kit;
     $_model == null ? forward_static_call_array(array($modeler, 'model'), array()) : forward_static_call_array(array($modeler, 'model'), array($_model));
     switch ($type) {
         case 'input':
         case 'property':
             $object_member = $type . '_form_object';
             break;
         default:
             return $modeler::model();
     }
     $form_object = json_decode($modeler::model()->{$object_member});
     $component = new \Sequode\Application\Modules\FormInput\Model();
     if (!$component->exists($input_object->Component, 'name')) {
         $component->exists('str', 'name');
     }
     $form_object_member = (object) null;
     $component_form_object = json_decode($component->component_form_object);
     foreach ($component_form_object as $loop_member => $loop_value) {
         if (isset($input_object->{$loop_member})) {
             $form_object_member->{$loop_member} = $input_object->{$loop_member};
         }
     }
     $form_object->{$member} = $form_object_member;
     $modeler::model()->updateField(json_encode($form_object), $object_member);
     self::maintenance();
     return $modeler::model();
 }
 public static function updateFormObjectMembers($type, $sequode_model = null)
 {
     if ($sequode_model == null) {
         $sequode_model = \Sequode\Application\Modules\Sequode\Modeler::model();
     }
     switch ($type) {
         case 'input':
             $type_object = 'input_object';
             $type_form = 'input_form_object';
             break;
         case 'property':
             $type_object = 'property_object';
             $type_form = 'property_form_object';
             break;
         default:
             return false;
     }
     $object = json_decode($sequode_model->{$type_object});
     if (count($object) < 1) {
         return (object) null;
     }
     $form_object = json_decode($sequode_model->{$type_form});
     foreach ($object as $loop_member => $loop_value) {
         //this is temporary till all sequodes can have maintenance run.
         if ($type == 'property' && $loop_member == 'Run_Process') {
             $form_object->{$loop_member} = json_decode('{"Component":"checkboxSwitch","Label":"Run Process","On_Value":"true","On_Text":"On","Off_Value":"false","Off_Text":"Off","Value":"false"}');
         } else {
             if (!isset($form_object->{$loop_member}) || $form_object->{$loop_member} == null) {
                 if ($type == 'property' && $loop_member == 'Run_Process') {
                     $form_object->{$loop_member} = json_decode('{"Component":"checkboxSwitch","Label":"Run Process","On_Value":"true","On_Text":"On","Off_Value":"false","Off_Text":"Off","Value":"false"}');
                 } else {
                     $component = new \Sequode\Application\Modules\FormInput\Model();
                     $component->exists('str', 'name');
                     $form_object->{$loop_member} = json_decode($component->component_object);
                     $form_object->{$loop_member}->Label = $loop_member;
                 }
             }
         }
     }
     return $form_object;
 }