/** * Create a form of UploadBase depending on wpSourceType and initializes it */ public static function createFromRequest( &$request, $type = null ) { $handler = new self; $handler->initializeFromRequest( $request ); return $handler; }