sel_options to be used on the client * * @param string $cname */ public function beforeSendToClient($cname) { $form_name = self::form_name($cname, $this->id); foreach(self::$request->content[$form_name]['status-widgets'] as $key => $type) { if(!is_array($type)) { list($basetype) = explode('-',$type); $widget = @self::factory($basetype, '<'.$basetype.' type="'.$type.'"/>', $key); $widget->id = $key; $widget->attrs['type'] = $type; $widget->type = $type; if(method_exists($widget, 'beforeSendToClient')) { $widget->beforeSendToClient($cname); } } else { if (!is_array(self::$request->sel_options[$key])) self::$request->sel_options[$key] = array(); self::$request->sel_options[$key] += $type; } } } } ?>