protected function doprocessform(twidget $widget) { $widget->maxcount = (int) $_POST['maxcount']; $widget->postschanged(); return parent::doprocessform($widget); }