public function __construct() {}
/**
- * Do the real variable initialization
+ * Initialize the path information
+ * @param $name string the desired destination name
+ * @param $tempPath string the temporary path
+ * @param $fileSize int the file size
+ * @param $removeTempFile bool (false) remove the temporary file?
+ * @return null
*/
- public function initialize( $name, $tempPath, $fileSize, $removeTempFile = false ) {
+ public function initializePathInfo( $name, $tempPath, $fileSize, $removeTempFile = false ) {
$this->mDesiredDestName = $name;
$this->mTempPath = $tempPath;
$this->mFileSize = $fileSize;
* an opaque key to the user agent.
*/
- parent::initialize( $name,
+ $this->initializePathInfo( $name,
$this->getRealPath ( $sessionData['mTempPath'] ),
$sessionData['mFileSize'],
false
return true;
}
-
+
/**
* There is no need to stash the image twice
*/
global $wgTmpDirectory;
$localFile = tempnam( $wgTmpDirectory, 'WEBUPLOAD' );
- parent::initialize( $name, $localFile, 0, true );
+ $this->initializePathInfo( $name, $localFile, 0, true );
$this->mUrl = trim( $url );
}