/** * Processes potential posted form. * * Done before any tag rendering, so the processing methods can set classes data before * all other tags use them. * Example : When the user logs in, the User() class need to set the current user * so the <ion:user /> tag can get this information independently from <ion:form tag /> * */ public static function process_form() { // Posting form name if (self::$ci->input->post('form')) { self::$posting_form_name = self::$ci->input->post('form'); } else { return; } // Get forms settings if ($f = self::$posting_form_name) { $forms = self::get_form_settings(); if (!empty($forms[$f]['process'])) { // Create one dummy parent tag $tag = new FTL_Binding(self::$context, self::$context->globals, 'init', array(), NULL); call_user_func($forms[$f]['process'], $tag); } } }