public static function search() { $module = static::$module; $context = $module::model()->context; $form_inputs = $module::model()->components->form_inputs; $_o = FormComponent::formObject(); $_o->form_inputs = FormComponent::formInputs($form_inputs, __FUNCTION__, func_get_args()); $_o->submit_xhr_call_route = FormComponent::xhrCallRoute($context, 'operations', 'search'); $_o->auto_submit_time = 1; return $_o; }
public static function password() { $module = static::$module; $context = $module::model()->context; $form_inputs = $module::model()->components->form_inputs; $_o = FormComponent::formObject(); $_o->form_inputs = FormComponent::formInputs($form_inputs, __FUNCTION__, func_get_args()); $_o->submit_xhr_call_route = FormComponent::xhrCallRoute($context, 'operations', 'updatePassword'); $_o->submit_button = 'Next'; return $_o; }
public static function selectPalette() { $module = static::$module; $modeler = $module::model()->modeler; $context = $module::model()->context; $form_inputs = $module::model()->components->form_inputs; $_model == null ? forward_static_call_array(array($modeler, 'model'), array()) : forward_static_call_array(array($modeler, 'model'), array($_model)); $_o = FormComponent::formObject(); $_o->form_inputs = FormComponent::formInputs($form_inputs, __FUNCTION__, func_get_args()); $_o->submit_xhr_call_route = FormComponent::xhrCallRoute($context, 'operations', 'selectPalette'); $_o->auto_submit_time = 1; return $_o; }
public static function updateName($_model = null) { $module = static::$module; $modeler = $module::model()->modeler; $context = $module::model()->context; $form_inputs = $module::model()->components->form_inputs; $_model == null ? forward_static_call_array(array($modeler, 'model'), array()) : forward_static_call_array(array($modeler, 'model'), array($_model)); $_o = FormComponent::formObject(); $_o->form_inputs = FormComponent::formInputs($form_inputs, __FUNCTION__, func_get_args()); $_o->submit_xhr_call_route = FormComponent::xhrCallRoute($context, 'operations', 'updateName'); $_o->auto_submit_time = 2000; $_o->submit_xhr_call_parameters = array(); $_o->submit_xhr_call_parameters[] = $modeler::model()->id; $_o->submit_xhr_call_parameters[] = FormComponent::$collection_replacement_hook; return $_o; }