public static function fromClass($class, $action = null, $method = 'post', $name = null) { $form = new self($action, $method, $name, true); $form->_dataHolder = $class; $form->_calledClass = get_class($class); $form->_startup(); return $form; }