first import

This commit is contained in:
Bachir Soussi Chiadmi
2015-04-08 11:40:19 +02:00
commit 1bc61b12ad
8435 changed files with 1582817 additions and 0 deletions

View File

@@ -0,0 +1,194 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>Class: plupload.File</title>
<meta name="generator" content="MoxieDoc" />
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/grids.css" />
<link rel="stylesheet" type="text/css" href="css/general.css" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3");
</script>
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
<script type="text/javascript" src="js/general.js"></script>
</head>
<body>
<div class="classDetailsContent">
<h1>plupload.File</h1>
<table class="classDetails">
<tr>
<td class="first">Namespace</td>
<td class="last">plupload</td>
</tr>
<tr>
<td class="first">Class</td>
<td class="last">File</td>
</tr>
</table>
<div class="classDescription">File instance.
</div>
<div class="summaryLists">
<h2>Public Properties</h2>
<table class="Properties summary">
<thead>
<tr>
<th>Property</th>
<th>Defined By</th>
</tr>
</thead>
<tbody>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.File.html#id">id</a> : String</div>
<div class="summary">File id this is a globally unique id for the specific file.</div>
</td>
<td class="last">File</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.File.html#loaded">loaded</a> : Number</div>
<div class="summary">Number of bytes uploaded of the files total size.</div>
</td>
<td class="last">File</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.File.html#name">name</a> : String</div>
<div class="summary">File name for example "myfile.</div>
</td>
<td class="last">File</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.File.html#percent">percent</a> : Number</div>
<div class="summary">Number of percentage uploaded of the file.</div>
</td>
<td class="last">File</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.File.html#size">size</a> : Number</div>
<div class="summary">File size in bytes.</div>
</td>
<td class="last">File</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.File.html#status">status</a> : Number</div>
<div class="summary">Status constant matching the plupload states QUEUED, UPLOADING, FAILED, DONE.</div>
</td>
<td class="last">File</td>
</tr>
</tbody>
</table>
<h2>Public Methods</h2>
<table class="Methods summary">
<thead>
<tr>
<th>Method</th>
<th>Defined By</th>
</tr>
</thead>
<tbody>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.File.html#File">File</a>(id:String, name:String, size:Number)</div>
<div class="summary">Constructs a new file instance.</div>
</td>
<td class="last">File</td>
</tr>
</tbody>
</table>
</div>
<div class="detailsList">
<div class="details">
<h2>Property details</h2>
<div class="memberDetails" id="id">
<h3>id<span class="memberType">property</span>
</h3>
<code class="syntax">public id : String</code>
<div class="memberDescription">File id this is a globally unique id for the specific file.
</div>
</div>
<div class="memberDetails" id="loaded">
<h3>loaded<span class="memberType">property</span>
</h3>
<code class="syntax">public loaded : Number</code>
<div class="memberDescription">Number of bytes uploaded of the files total size.
</div>
</div>
<div class="memberDetails" id="name">
<h3>name<span class="memberType">property</span>
</h3>
<code class="syntax">public name : String</code>
<div class="memberDescription">File name for example "myfile.gif".
</div>
</div>
<div class="memberDetails" id="percent">
<h3>percent<span class="memberType">property</span>
</h3>
<code class="syntax">public percent : Number</code>
<div class="memberDescription">Number of percentage uploaded of the file.
</div>
</div>
<div class="memberDetails" id="size">
<h3>size<span class="memberType">property</span>
</h3>
<code class="syntax">public size : Number</code>
<div class="memberDescription">File size in bytes.
</div>
</div>
<div class="memberDetails last" id="status">
<h3>status<span class="memberType">property</span>
</h3>
<code class="syntax">public status : Number</code>
<div class="memberDescription">Status constant matching the plupload states QUEUED, UPLOADING, FAILED, DONE.
</div>
<h4>See Also</h4>
<ul class="see">
<li>
<a href="class_plupload.html">plupload</a>
</li>
</ul>
</div>
</div>
<div class="details">
<h2>Method details</h2>
<div class="memberDetails last" id="File">
<h3>File<span class="memberType">constructor</span>
</h3>
<code class="syntax">public
function File(id:String, name:String, size:Number)</code>
<div class="memberDescription">Constructs a new file instance.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">id:String</td>
<td class="last">Unique file id.</td>
</tr>
<tr>
<td class="first">name:String</td>
<td class="last">File name.</td>
</tr>
<tr>
<td class="first">size:Number</td>
<td class="last">File size in bytes.</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,204 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>Class: plupload.QueueProgress</title>
<meta name="generator" content="MoxieDoc" />
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/grids.css" />
<link rel="stylesheet" type="text/css" href="css/general.css" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3");
</script>
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
<script type="text/javascript" src="js/general.js"></script>
</head>
<body>
<div class="classDetailsContent">
<h1>plupload.QueueProgress</h1>
<table class="classDetails">
<tr>
<td class="first">Namespace</td>
<td class="last">plupload</td>
</tr>
<tr>
<td class="first">Class</td>
<td class="last">QueueProgress</td>
</tr>
</table>
<div class="classDescription">Runtime class gets implemented by each upload runtime.
</div>
<div class="summaryLists">
<h2>Public Properties</h2>
<table class="Properties summary">
<thead>
<tr>
<th>Property</th>
<th>Defined By</th>
</tr>
</thead>
<tbody>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.QueueProgress.html#bytesPerSec">bytesPerSec</a> : Number</div>
<div class="summary">Bytes uploaded per second.</div>
</td>
<td class="last">QueueProgress</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.QueueProgress.html#failed">failed</a> : Number</div>
<div class="summary">Number of files failed to upload.</div>
</td>
<td class="last">QueueProgress</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.QueueProgress.html#loaded">loaded</a> : Number</div>
<div class="summary">Total bytes uploaded.</div>
</td>
<td class="last">QueueProgress</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.QueueProgress.html#percent">percent</a> : Number</div>
<div class="summary">Total percent of the uploaded bytes.</div>
</td>
<td class="last">QueueProgress</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.QueueProgress.html#queued">queued</a> : Number</div>
<div class="summary">Number of files yet to be uploaded.</div>
</td>
<td class="last">QueueProgress</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.QueueProgress.html#size">size</a> : Number</div>
<div class="summary">Total queue file size.</div>
</td>
<td class="last">QueueProgress</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.QueueProgress.html#uploaded">uploaded</a> : Number</div>
<div class="summary">Number of files uploaded.</div>
</td>
<td class="last">QueueProgress</td>
</tr>
</tbody>
</table>
<h2>Public Methods</h2>
<table class="Methods summary">
<thead>
<tr>
<th>Method</th>
<th>Defined By</th>
</tr>
</thead>
<tbody>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.QueueProgress.html#QueueProgress">QueueProgress</a>()</div>
<div class="summary">Constructs a queue progress.</div>
</td>
<td class="last">QueueProgress</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.QueueProgress.html#reset">reset</a>():void</div>
<div class="summary">Resets the progress to it's initial values.</div>
</td>
<td class="last">QueueProgress</td>
</tr>
</tbody>
</table>
</div>
<div class="detailsList">
<div class="details">
<h2>Property details</h2>
<div class="memberDetails" id="bytesPerSec">
<h3>bytesPerSec<span class="memberType">property</span>
</h3>
<code class="syntax">public bytesPerSec : Number</code>
<div class="memberDescription">Bytes uploaded per second.
</div>
</div>
<div class="memberDetails" id="failed">
<h3>failed<span class="memberType">property</span>
</h3>
<code class="syntax">public failed : Number</code>
<div class="memberDescription">Number of files failed to upload.
</div>
</div>
<div class="memberDetails" id="loaded">
<h3>loaded<span class="memberType">property</span>
</h3>
<code class="syntax">public loaded : Number</code>
<div class="memberDescription">Total bytes uploaded.
</div>
</div>
<div class="memberDetails" id="percent">
<h3>percent<span class="memberType">property</span>
</h3>
<code class="syntax">public percent : Number</code>
<div class="memberDescription">Total percent of the uploaded bytes.
</div>
</div>
<div class="memberDetails" id="queued">
<h3>queued<span class="memberType">property</span>
</h3>
<code class="syntax">public queued : Number</code>
<div class="memberDescription">Number of files yet to be uploaded.
</div>
</div>
<div class="memberDetails" id="size">
<h3>size<span class="memberType">property</span>
</h3>
<code class="syntax">public size : Number</code>
<div class="memberDescription">Total queue file size.
</div>
</div>
<div class="memberDetails last" id="uploaded">
<h3>uploaded<span class="memberType">property</span>
</h3>
<code class="syntax">public uploaded : Number</code>
<div class="memberDescription">Number of files uploaded.
</div>
</div>
</div>
<div class="details">
<h2>Method details</h2>
<div class="memberDetails" id="QueueProgress">
<h3>QueueProgress<span class="memberType">constructor</span>
</h3>
<code class="syntax">public
function QueueProgress()</code>
<div class="memberDescription">Constructs a queue progress.
</div>
</div>
<div class="memberDetails last" id="reset">
<h3>reset<span class="memberType">method</span>
</h3>
<code class="syntax">public
function reset():void</code>
<div class="memberDescription">Resets the progress to it's initial values.
</div>
</div>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,92 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>Class: plupload.Runtime</title>
<meta name="generator" content="MoxieDoc" />
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/grids.css" />
<link rel="stylesheet" type="text/css" href="css/general.css" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3");
</script>
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
<script type="text/javascript" src="js/general.js"></script>
</head>
<body>
<div class="classDetailsContent">
<h1>plupload.Runtime</h1>
<table class="classDetails">
<tr>
<td class="first">Namespace</td>
<td class="last">plupload</td>
</tr>
<tr>
<td class="first">Class</td>
<td class="last">Runtime</td>
</tr>
<tr>
<td class="first">Type</td>
<td class="last">Singleton</td>
</tr>
<tr>
<td class="first">Subclasses</td>
<td class="last subClassList">
<a href="class_plupload.runtimes.BrowserPlus.html">BrowserPlus</a>, <a href="class_plupload.runtimes.Flash.html">Flash</a>, <a href="class_plupload.runtimes.Gears.html">Gears</a>, <a href="class_plupload.runtimes.Html4.html">Html4</a>, <a href="class_plupload.runtimes.Html5.html">Html5</a>, <a href="class_plupload.runtimes.Silverlight.html">Silverlight</a>
</td>
</tr>
</table>
<div class="classDescription">Runtime class gets implemented by each upload runtime.
</div>
<div class="summaryLists">
<h2>Public Methods</h2>
<table class="Methods summary">
<thead>
<tr>
<th>Method</th>
<th>Defined By</th>
</tr>
</thead>
<tbody>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.Runtime.html#init">init</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</div>
<div class="summary">
<span class="static">[static] </span>Initializes the upload runtime.</div>
</td>
<td class="last">Runtime</td>
</tr>
</tbody>
</table>
</div>
<div class="detailsList">
<div class="details">
<h2>Method details</h2>
<div class="memberDetails last" id="init">
<h3>init<span class="memberType">method</span>
</h3>
<code class="syntax">public static
function init(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</code>
<div class="memberDescription">Initializes the upload runtime. This method should add necessary items to the DOM and register events needed for operation.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance that needs to be initialized.</td>
</tr>
<tr>
<td class="first">callback:function</td>
<td class="last">Callback function to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,913 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>Class: plupload.Uploader</title>
<meta name="generator" content="MoxieDoc" />
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/grids.css" />
<link rel="stylesheet" type="text/css" href="css/general.css" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3");
</script>
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
<script type="text/javascript" src="js/general.js"></script>
</head>
<body>
<div class="classDetailsContent">
<h1>plupload.Uploader</h1>
<table class="classDetails">
<tr>
<td class="first">Namespace</td>
<td class="last">plupload</td>
</tr>
<tr>
<td class="first">Class</td>
<td class="last">Uploader</td>
</tr>
</table>
<div class="classDescription">Uploader class, an instance of this class will be created for each upload field.
</div>
<h4>Example</h4>
<pre class="brush: js;">var uploader = new plupload.Uploader({
runtimes : 'gears,html5,flash',
browse_button : 'button_id'
});
uploader.bind('Init', function(up) {
alert('Supports drag/drop: ' + (!!up.features.dragdrop));
});
uploader.bind('FilesAdded', function(up, files) {
alert('Selected files: ' + files.length);
});
uploader.bind('QueueChanged', function(up) {
alert('Queued files: ' + uploader.files.length);
});
uploader.init();</pre>
<div class="summaryLists">
<h2>Public Properties</h2>
<table class="Properties summary">
<thead>
<tr>
<th>Property</th>
<th>Defined By</th>
</tr>
</thead>
<tbody>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#features">features</a> : Object</div>
<div class="summary">Map of features that are available for the uploader runtime.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#files">files</a> : Array</div>
<div class="summary">Current upload queue, an array of File instances.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#id">id</a> : String</div>
<div class="summary">Unique id for the Uploader instance.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#runtime">runtime</a> : String</div>
<div class="summary">Current runtime name.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#settings">settings</a> : Object</div>
<div class="summary">Object with name/value settings.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#state">state</a> : Number</div>
<div class="summary">Current state of the total uploading progress.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#total">total</a> : <a href="class_plupload.QueueProgress.html">QueueProgress</a>
</div>
<div class="summary">Total progess information.</div>
</td>
<td class="last">Uploader</td>
</tr>
</tbody>
</table>
<h2>Public Methods</h2>
<table class="Methods summary">
<thead>
<tr>
<th>Method</th>
<th>Defined By</th>
</tr>
</thead>
<tbody>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#Uploader">Uploader</a>(settings:Object)</div>
<div class="summary">Constructs a new uploader instance.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#bind">bind</a>(name:String, func:function, scope:Object):void</div>
<div class="summary">Adds an event listener by name.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#destroy">destroy</a>():void</div>
<div class="summary">Destroys Plupload instance and cleans after itself.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#getFile">getFile</a>(id:String):<a href="class_plupload.File.html">File</a>
</div>
<div class="summary">Returns the specified file object by id.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#init">init</a>():void</div>
<div class="summary">Initializes the Uploader instance and adds internal event listeners.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#refresh">refresh</a>():void</div>
<div class="summary">Refreshes the upload instance by dispatching out a refresh event to all runtimes.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#removeFile">removeFile</a>(file:<a href="class_plupload.File.html">File</a>):void</div>
<div class="summary">Removes a specific file.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#splice">splice</a>(start:Number, length:Number):Array</div>
<div class="summary">Removes part of the queue and returns the files removed.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#start">start</a>():void</div>
<div class="summary">Starts uploading the queued files.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#stop">stop</a>():void</div>
<div class="summary">Stops the upload of the queued files.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#trigger">trigger</a>(name:String, Multiple:Object..):void</div>
<div class="summary">Dispatches the specified event name and it's arguments to all listeners.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#unbind">unbind</a>(name:String, func:function):void</div>
<div class="summary">Removes the specified event listener.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#unbindAll">unbindAll</a>():void</div>
<div class="summary">Removes all event listeners.</div>
</td>
<td class="last">Uploader</td>
</tr>
</tbody>
</table>
<h2>Public Events</h2>
<table class="Events summary">
<thead>
<tr>
<th>Event</th>
<th>Defined By</th>
</tr>
</thead>
<tbody>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#BeforeUpload">BeforeUpload</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, file:<a href="class_plupload.File.html">File</a>)</div>
<div class="summary">Fires when just before a file is uploaded.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#ChunkUploaded">ChunkUploaded</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, file:<a href="class_plupload.File.html">File</a>, response:Object)</div>
<div class="summary">Fires when file chunk is uploaded.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#Destroy">Destroy</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</div>
<div class="summary">Fires when destroy method is called.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#Error">Error</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, error:Object)</div>
<div class="summary">Fires when a error occurs.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#FilesAdded">FilesAdded</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, files:Array)</div>
<div class="summary">Fires while when the user selects files to upload.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#FilesRemoved">FilesRemoved</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, files:Array)</div>
<div class="summary">Fires while a file was removed from queue.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#FileUploaded">FileUploaded</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, file:<a href="class_plupload.File.html">File</a>, response:Object)</div>
<div class="summary">Fires when a file is successfully uploaded.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#Init">Init</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</div>
<div class="summary">Fires when the current RunTime has been initialized.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#PostInit">PostInit</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</div>
<div class="summary">Fires after the init event incase you need to perform actions there.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#QueueChanged">QueueChanged</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</div>
<div class="summary">Fires when the file queue is changed.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#Refresh">Refresh</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</div>
<div class="summary">Fires when the silverlight/flash or other shim needs to move.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#StateChanged">StateChanged</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</div>
<div class="summary">Fires when the overall state is being changed for the upload queue.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#UploadComplete">UploadComplete</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, files:Array)</div>
<div class="summary">Fires when all files in a queue are uploaded.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#UploadFile">UploadFile</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, file:<a href="class_plupload.File.html">File</a>)</div>
<div class="summary">Fires when a file is to be uploaded by the runtime.</div>
</td>
<td class="last">Uploader</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.Uploader.html#UploadProgress">UploadProgress</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, file:<a href="class_plupload.File.html">File</a>)</div>
<div class="summary">Fires while a file is being uploaded.</div>
</td>
<td class="last">Uploader</td>
</tr>
</tbody>
</table>
</div>
<div class="detailsList">
<div class="details">
<h2>Property details</h2>
<div class="memberDetails" id="features">
<h3>features<span class="memberType">property</span>
</h3>
<code class="syntax">public features : Object</code>
<div class="memberDescription">Map of features that are available for the uploader runtime. Features will be filled
before the init event is called, these features can then be used to alter the UI for the end user.
Some of the current features that might be in this map is: dragdrop, chunks, jpgresize, pngresize.
</div>
</div>
<div class="memberDetails" id="files">
<h3>files<span class="memberType">property</span>
</h3>
<code class="syntax">public files : Array</code>
<div class="memberDescription">Current upload queue, an array of File instances.
</div>
<h4>See Also</h4>
<ul class="see">
<li>
<a href="class_plupload.File.html">File</a>
</li>
</ul>
</div>
<div class="memberDetails" id="id">
<h3>id<span class="memberType">property</span>
</h3>
<code class="syntax">public id : String</code>
<div class="memberDescription">Unique id for the Uploader instance.
</div>
</div>
<div class="memberDetails" id="runtime">
<h3>runtime<span class="memberType">property</span>
</h3>
<code class="syntax">public runtime : String</code>
<div class="memberDescription">Current runtime name.
</div>
</div>
<div class="memberDetails" id="settings">
<h3>settings<span class="memberType">property</span>
</h3>
<code class="syntax">public settings : Object</code>
<div class="memberDescription">Object with name/value settings.
</div>
</div>
<div class="memberDetails" id="state">
<h3>state<span class="memberType">property</span>
</h3>
<code class="syntax">public state : Number</code>
<div class="memberDescription">Current state of the total uploading progress. This one can either be plupload.STARTED or plupload.STOPPED.
These states are controlled by the stop/start methods. The default value is STOPPED.
</div>
</div>
<div class="memberDetails last" id="total">
<h3>total<span class="memberType">property</span>
</h3>
<code class="syntax">public total : <a href="class_plupload.QueueProgress.html">QueueProgress</a>
</code>
<div class="memberDescription">Total progess information. How many files has been uploaded, total percent etc.
</div>
</div>
</div>
<div class="details">
<h2>Method details</h2>
<div class="memberDetails" id="Uploader">
<h3>Uploader<span class="memberType">constructor</span>
</h3>
<code class="syntax">public
function Uploader(settings:Object)</code>
<div class="memberDescription">Constructs a new uploader instance.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">settings:Object</td>
<td class="last">Initialization settings, to be used by the uploader instance and runtimes.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="bind">
<h3>bind<span class="memberType">method</span>
</h3>
<code class="syntax">public
function bind(name:String, func:function, scope:Object):void</code>
<div class="memberDescription">Adds an event listener by name.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">name:String</td>
<td class="last">Event name to listen for.</td>
</tr>
<tr>
<td class="first">func:function</td>
<td class="last">Function to call ones the event gets fired.</td>
</tr>
<tr>
<td class="first">scope:Object</td>
<td class="last">Optional scope to execute the specified function in.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="destroy">
<h3>destroy<span class="memberType">method</span>
</h3>
<code class="syntax">public
function destroy():void</code>
<div class="memberDescription">Destroys Plupload instance and cleans after itself.
</div>
</div>
<div class="memberDetails" id="getFile">
<h3>getFile<span class="memberType">method</span>
</h3>
<code class="syntax">public
function getFile(id:String):<a href="class_plupload.File.html">File</a>
</code>
<div class="memberDescription">Returns the specified file object by id.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">id:String</td>
<td class="last">File id to look for.</td>
</tr>
</table>
<h4>Returns</h4>
<div class="returns">
<a href="class_plupload.File.html">File</a> - File object or undefined if it wasn't found;</div>
</div>
<div class="memberDetails" id="init">
<h3>init<span class="memberType">method</span>
</h3>
<code class="syntax">public
function init():void</code>
<div class="memberDescription">Initializes the Uploader instance and adds internal event listeners.
</div>
</div>
<div class="memberDetails" id="refresh">
<h3>refresh<span class="memberType">method</span>
</h3>
<code class="syntax">public
function refresh():void</code>
<div class="memberDescription">Refreshes the upload instance by dispatching out a refresh event to all runtimes.
This would for example reposition flash/silverlight shims on the page.
</div>
</div>
<div class="memberDetails" id="removeFile">
<h3>removeFile<span class="memberType">method</span>
</h3>
<code class="syntax">public
function removeFile(file:<a href="class_plupload.File.html">File</a>):void</code>
<div class="memberDescription">Removes a specific file.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">file:<a href="class_plupload.File.html">File</a>
</td>
<td class="last">File to remove from queue.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="splice">
<h3>splice<span class="memberType">method</span>
</h3>
<code class="syntax">public
function splice(start:Number, length:Number):Array</code>
<div class="memberDescription">Removes part of the queue and returns the files removed. This will also trigger the FilesRemoved and QueueChanged events.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">start:Number</td>
<td class="last">(Optional) Start index to remove from.</td>
</tr>
<tr>
<td class="first">length:Number</td>
<td class="last">(Optional) Lengh of items to remove.</td>
</tr>
</table>
<h4>Returns</h4>
<div class="returns">Array - Array of files that was removed.</div>
</div>
<div class="memberDetails" id="start">
<h3>start<span class="memberType">method</span>
</h3>
<code class="syntax">public
function start():void</code>
<div class="memberDescription">Starts uploading the queued files.
</div>
</div>
<div class="memberDetails" id="stop">
<h3>stop<span class="memberType">method</span>
</h3>
<code class="syntax">public
function stop():void</code>
<div class="memberDescription">Stops the upload of the queued files.
</div>
</div>
<div class="memberDetails" id="trigger">
<h3>trigger<span class="memberType">method</span>
</h3>
<code class="syntax">public
function trigger(name:String, Multiple:Object..):void</code>
<div class="memberDescription">Dispatches the specified event name and it's arguments to all listeners.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">name:String</td>
<td class="last">Event name to fire.</td>
</tr>
<tr>
<td class="first">Multiple:Object..</td>
<td class="last">arguments to pass along to the listener functions.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="unbind">
<h3>unbind<span class="memberType">method</span>
</h3>
<code class="syntax">public
function unbind(name:String, func:function):void</code>
<div class="memberDescription">Removes the specified event listener.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">name:String</td>
<td class="last">Name of event to remove.</td>
</tr>
<tr>
<td class="first">func:function</td>
<td class="last">Function to remove from listener.</td>
</tr>
</table>
</div>
<div class="memberDetails last" id="unbindAll">
<h3>unbindAll<span class="memberType">method</span>
</h3>
<code class="syntax">public
function unbindAll():void</code>
<div class="memberDescription">Removes all event listeners.
</div>
</div>
</div>
<div class="details">
<h2>Event details</h2>
<div class="memberDetails" id="BeforeUpload">
<h3>BeforeUpload<span class="memberType">event</span>
</h3>
<code class="syntax">public
event BeforeUpload(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, file:<a href="class_plupload.File.html">File</a>)</code>
<div class="memberDescription">Fires when just before a file is uploaded. This event enables you to override settings
on the uploader instance before the file is uploaded.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance sending the event.</td>
</tr>
<tr>
<td class="first">file:<a href="class_plupload.File.html">File</a>
</td>
<td class="last">File to be uploaded.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="ChunkUploaded">
<h3>ChunkUploaded<span class="memberType">event</span>
</h3>
<code class="syntax">public
event ChunkUploaded(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, file:<a href="class_plupload.File.html">File</a>, response:Object)</code>
<div class="memberDescription">Fires when file chunk is uploaded.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance sending the event.</td>
</tr>
<tr>
<td class="first">file:<a href="class_plupload.File.html">File</a>
</td>
<td class="last">File that the chunk was uploaded for.</td>
</tr>
<tr>
<td class="first">response:Object</td>
<td class="last">Object with response properties.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="Destroy">
<h3>Destroy<span class="memberType">event</span>
</h3>
<code class="syntax">public
event Destroy(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</code>
<div class="memberDescription">Fires when destroy method is called.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance sending the event.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="Error">
<h3>Error<span class="memberType">event</span>
</h3>
<code class="syntax">public
event Error(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, error:Object)</code>
<div class="memberDescription">Fires when a error occurs.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance sending the event.</td>
</tr>
<tr>
<td class="first">error:Object</td>
<td class="last">Contains code, message and sometimes file and other details.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="FilesAdded">
<h3>FilesAdded<span class="memberType">event</span>
</h3>
<code class="syntax">public
event FilesAdded(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, files:Array)</code>
<div class="memberDescription">Fires while when the user selects files to upload.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance sending the event.</td>
</tr>
<tr>
<td class="first">files:Array</td>
<td class="last">Array of file objects that was added to queue/selected by the user.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="FilesRemoved">
<h3>FilesRemoved<span class="memberType">event</span>
</h3>
<code class="syntax">public
event FilesRemoved(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, files:Array)</code>
<div class="memberDescription">Fires while a file was removed from queue.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance sending the event.</td>
</tr>
<tr>
<td class="first">files:Array</td>
<td class="last">Array of files that got removed.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="FileUploaded">
<h3>FileUploaded<span class="memberType">event</span>
</h3>
<code class="syntax">public
event FileUploaded(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, file:<a href="class_plupload.File.html">File</a>, response:Object)</code>
<div class="memberDescription">Fires when a file is successfully uploaded.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance sending the event.</td>
</tr>
<tr>
<td class="first">file:<a href="class_plupload.File.html">File</a>
</td>
<td class="last">File that was uploaded.</td>
</tr>
<tr>
<td class="first">response:Object</td>
<td class="last">Object with response properties.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="Init">
<h3>Init<span class="memberType">event</span>
</h3>
<code class="syntax">public
event Init(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</code>
<div class="memberDescription">Fires when the current RunTime has been initialized.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance sending the event.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="PostInit">
<h3>PostInit<span class="memberType">event</span>
</h3>
<code class="syntax">public
event PostInit(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</code>
<div class="memberDescription">Fires after the init event incase you need to perform actions there.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance sending the event.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="QueueChanged">
<h3>QueueChanged<span class="memberType">event</span>
</h3>
<code class="syntax">public
event QueueChanged(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</code>
<div class="memberDescription">Fires when the file queue is changed. In other words when files are added/removed to the files array of the uploader instance.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance sending the event.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="Refresh">
<h3>Refresh<span class="memberType">event</span>
</h3>
<code class="syntax">public
event Refresh(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</code>
<div class="memberDescription">Fires when the silverlight/flash or other shim needs to move.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance sending the event.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="StateChanged">
<h3>StateChanged<span class="memberType">event</span>
</h3>
<code class="syntax">public
event StateChanged(uploader:<a href="class_plupload.Uploader.html">Uploader</a>)</code>
<div class="memberDescription">Fires when the overall state is being changed for the upload queue.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance sending the event.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="UploadComplete">
<h3>UploadComplete<span class="memberType">event</span>
</h3>
<code class="syntax">public
event UploadComplete(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, files:Array)</code>
<div class="memberDescription">Fires when all files in a queue are uploaded.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance sending the event.</td>
</tr>
<tr>
<td class="first">files:Array</td>
<td class="last">Array of file objects that was added to queue/selected by the user.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="UploadFile">
<h3>UploadFile<span class="memberType">event</span>
</h3>
<code class="syntax">public
event UploadFile(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, file:<a href="class_plupload.File.html">File</a>)</code>
<div class="memberDescription">Fires when a file is to be uploaded by the runtime.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance sending the event.</td>
</tr>
<tr>
<td class="first">file:<a href="class_plupload.File.html">File</a>
</td>
<td class="last">File to be uploaded.</td>
</tr>
</table>
</div>
<div class="memberDetails last" id="UploadProgress">
<h3>UploadProgress<span class="memberType">event</span>
</h3>
<code class="syntax">public
event UploadProgress(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, file:<a href="class_plupload.File.html">File</a>)</code>
<div class="memberDescription">Fires while a file is being uploaded. Use this event to update the current file upload progress.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance sending the event.</td>
</tr>
<tr>
<td class="first">file:<a href="class_plupload.File.html">File</a>
</td>
<td class="last">File that is currently being uploaded.</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,538 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>Class: plupload</title>
<meta name="generator" content="MoxieDoc" />
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/grids.css" />
<link rel="stylesheet" type="text/css" href="css/general.css" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3");
</script>
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
<script type="text/javascript" src="js/general.js"></script>
</head>
<body>
<div class="classDetailsContent">
<h1>plupload</h1>
<table class="classDetails">
<tr>
<td class="first">Class</td>
<td class="last">plupload</td>
</tr>
<tr>
<td class="first">Type</td>
<td class="last">Singleton</td>
</tr>
</table>
<div class="classDescription">Plupload class with some global constants and functions.
</div>
<h4>Example</h4>
<pre class="brush: js;">// Encode entities
console.log(plupload.xmlEncode("My string &lt;&gt;"));
// Generate unique id
console.log(plupload.guid());</pre>
<div class="summaryLists">
<h2>Public Properties</h2>
<table class="Properties summary">
<thead>
<tr>
<th>Property</th>
<th>Defined By</th>
</tr>
</thead>
<tbody>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#DONE">DONE</a> : Object</div>
<div class="summary">
<span class="static">[static] </span>File has been uploaded successfully</div>
</td>
<td class="last">plupload</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#FAILED">FAILED</a> : Object</div>
<div class="summary">
<span class="static">[static] </span>File has failed to be uploaded</div>
</td>
<td class="last">plupload</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#FILE_EXTENSION_ERROR">FILE_EXTENSION_ERROR</a> : Object</div>
<div class="summary">
<span class="static">[static] </span>File extension error.</div>
</td>
<td class="last">plupload</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#FILE_SIZE_ERROR">FILE_SIZE_ERROR</a> : Object</div>
<div class="summary">
<span class="static">[static] </span>File size error.</div>
</td>
<td class="last">plupload</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#GENERIC_ERROR">GENERIC_ERROR</a> : Object</div>
<div class="summary">
<span class="static">[static] </span>Generic error for example if an exception is thrown inside Silverlight.</div>
</td>
<td class="last">plupload</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#HTTP_ERROR">HTTP_ERROR</a> : Object</div>
<div class="summary">
<span class="static">[static] </span>HTTP transport error.</div>
</td>
<td class="last">plupload</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#INIT_ERROR">INIT_ERROR</a> : Object</div>
<div class="summary">
<span class="static">[static] </span>Initialization error.</div>
</td>
<td class="last">plupload</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#IO_ERROR">IO_ERROR</a> : Object</div>
<div class="summary">
<span class="static">[static] </span>Generic I/O error.</div>
</td>
<td class="last">plupload</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#mimeTypes">mimeTypes</a> : Object</div>
<div class="summary">
<span class="static">[static] </span>Mime type lookup table.</div>
</td>
<td class="last">plupload</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#QUEUED">QUEUED</a> : Object</div>
<div class="summary">
<span class="static">[static] </span>File is queued for upload</div>
</td>
<td class="last">plupload</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#SECURITY_ERROR">SECURITY_ERROR</a> : Object</div>
<div class="summary">
<span class="static">[static] </span>Generic I/O error.</div>
</td>
<td class="last">plupload</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#STARTED">STARTED</a> : Object</div>
<div class="summary">
<span class="static">[static] </span>Upload process is running</div>
</td>
<td class="last">plupload</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#STOPPED">STOPPED</a> : Object</div>
<div class="summary">
<span class="static">[static] </span>Inital state of the queue and also the state ones it's finished all it's uploads.</div>
</td>
<td class="last">plupload</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#UPLOADING">UPLOADING</a> : Object</div>
<div class="summary">
<span class="static">[static] </span>File is being uploaded</div>
</td>
<td class="last">plupload</td>
</tr>
</tbody>
</table>
<h2>Public Methods</h2>
<table class="Methods summary">
<thead>
<tr>
<th>Method</th>
<th>Defined By</th>
</tr>
</thead>
<tbody>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#addRuntime">addRuntime</a>(name:String, obj:Object):void</div>
<div class="summary">
<span class="static">[static] </span>Adds a specific upload runtime like for example flash or gears.</div>
</td>
<td class="last">plupload</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#cleanName">cleanName</a>(s:String):String</div>
<div class="summary">
<span class="static">[static] </span>Cleans the specified name from national characters (diacritics).</div>
</td>
<td class="last">plupload</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#extend">extend</a>(target:Object, obj:Object..):Object</div>
<div class="summary">
<span class="static">[static] </span>Extends the specified object with another object.</div>
</td>
<td class="last">plupload</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#formatSize">formatSize</a>(size:Number):String</div>
<div class="summary">
<span class="static">[static] </span>Formats the specified number as a size string for example 1024 becomes 1 KB.</div>
</td>
<td class="last">plupload</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#getPos">getPos</a>(node:Element, root:Element):object</div>
<div class="summary">
<span class="static">[static] </span>Returns the absolute x, y position of an Element.</div>
</td>
<td class="last">plupload</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#guid">guid</a>():String</div>
<div class="summary">
<span class="static">[static] </span>Generates an unique ID.</div>
</td>
<td class="last">plupload</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#parseSize">parseSize</a>(size:String/Number):Number</div>
<div class="summary">
<span class="static">[static] </span>Parses the specified size string into a byte value.</div>
</td>
<td class="last">plupload</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#toArray">toArray</a>(obj:Object):Array</div>
<div class="summary">
<span class="static">[static] </span>Forces anything into an array.</div>
</td>
<td class="last">plupload</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.html#xmlEncode">xmlEncode</a>(s:String):String</div>
<div class="summary">
<span class="static">[static] </span>Encodes the specified string.</div>
</td>
<td class="last">plupload</td>
</tr>
</tbody>
</table>
</div>
<div class="detailsList">
<div class="details">
<h2>Property details</h2>
<div class="memberDetails" id="DONE">
<h3>DONE<span class="memberType">property</span>
</h3>
<code class="syntax">public static DONE : Object</code>
<div class="memberDescription">File has been uploaded successfully
</div>
</div>
<div class="memberDetails" id="FAILED">
<h3>FAILED<span class="memberType">property</span>
</h3>
<code class="syntax">public static FAILED : Object</code>
<div class="memberDescription">File has failed to be uploaded
</div>
</div>
<div class="memberDetails" id="FILE_EXTENSION_ERROR">
<h3>FILE_EXTENSION_ERROR<span class="memberType">property</span>
</h3>
<code class="syntax">public static FILE_EXTENSION_ERROR : Object</code>
<div class="memberDescription">File extension error. If the user selects a file that isn't valid according to the filters setting.
</div>
</div>
<div class="memberDetails" id="FILE_SIZE_ERROR">
<h3>FILE_SIZE_ERROR<span class="memberType">property</span>
</h3>
<code class="syntax">public static FILE_SIZE_ERROR : Object</code>
<div class="memberDescription">File size error. If the user selects a file that is to large it will be blocked and an error of this type will be triggered.
</div>
</div>
<div class="memberDetails" id="GENERIC_ERROR">
<h3>GENERIC_ERROR<span class="memberType">property</span>
</h3>
<code class="syntax">public static GENERIC_ERROR : Object</code>
<div class="memberDescription">Generic error for example if an exception is thrown inside Silverlight.
</div>
</div>
<div class="memberDetails" id="HTTP_ERROR">
<h3>HTTP_ERROR<span class="memberType">property</span>
</h3>
<code class="syntax">public static HTTP_ERROR : Object</code>
<div class="memberDescription">HTTP transport error. For example if the server produces a HTTP status other than 200.
</div>
</div>
<div class="memberDetails" id="INIT_ERROR">
<h3>INIT_ERROR<span class="memberType">property</span>
</h3>
<code class="syntax">public static INIT_ERROR : Object</code>
<div class="memberDescription">Initialization error. Will be triggered if no runtime was initialized.
</div>
</div>
<div class="memberDetails" id="IO_ERROR">
<h3>IO_ERROR<span class="memberType">property</span>
</h3>
<code class="syntax">public static IO_ERROR : Object</code>
<div class="memberDescription">Generic I/O error. For exampe if it wasn't possible to open the file stream on local machine.
</div>
</div>
<div class="memberDetails" id="mimeTypes">
<h3>mimeTypes<span class="memberType">property</span>
</h3>
<code class="syntax">public static mimeTypes : Object</code>
<div class="memberDescription">Mime type lookup table.
</div>
</div>
<div class="memberDetails" id="QUEUED">
<h3>QUEUED<span class="memberType">property</span>
</h3>
<code class="syntax">public static QUEUED : Object</code>
<div class="memberDescription">File is queued for upload
</div>
</div>
<div class="memberDetails" id="SECURITY_ERROR">
<h3>SECURITY_ERROR<span class="memberType">property</span>
</h3>
<code class="syntax">public static SECURITY_ERROR : Object</code>
<div class="memberDescription">Generic I/O error. For exampe if it wasn't possible to open the file stream on local machine.
</div>
</div>
<div class="memberDetails" id="STARTED">
<h3>STARTED<span class="memberType">property</span>
</h3>
<code class="syntax">public static STARTED : Object</code>
<div class="memberDescription">Upload process is running
</div>
</div>
<div class="memberDetails" id="STOPPED">
<h3>STOPPED<span class="memberType">property</span>
</h3>
<code class="syntax">public static STOPPED : Object</code>
<div class="memberDescription">Inital state of the queue and also the state ones it's finished all it's uploads.
</div>
</div>
<div class="memberDetails last" id="UPLOADING">
<h3>UPLOADING<span class="memberType">property</span>
</h3>
<code class="syntax">public static UPLOADING : Object</code>
<div class="memberDescription">File is being uploaded
</div>
</div>
</div>
<div class="details">
<h2>Method details</h2>
<div class="memberDetails" id="addRuntime">
<h3>addRuntime<span class="memberType">method</span>
</h3>
<code class="syntax">public static
function addRuntime(name:String, obj:Object):void</code>
<div class="memberDescription">Adds a specific upload runtime like for example flash or gears.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">name:String</td>
<td class="last">Runtime name for example flash.</td>
</tr>
<tr>
<td class="first">obj:Object</td>
<td class="last">Object containing init/destroy method.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="cleanName">
<h3>cleanName<span class="memberType">method</span>
</h3>
<code class="syntax">public static
function cleanName(s:String):String</code>
<div class="memberDescription">Cleans the specified name from national characters (diacritics). The result will be a name with only a-z, 0-9 and _.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">s:String</td>
<td class="last">String to clean up.</td>
</tr>
</table>
<h4>Returns</h4>
<div class="returns">String - Cleaned string.</div>
</div>
<div class="memberDetails" id="extend">
<h3>extend<span class="memberType">method</span>
</h3>
<code class="syntax">public static
function extend(target:Object, obj:Object..):Object</code>
<div class="memberDescription">Extends the specified object with another object.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">target:Object</td>
<td class="last">Object to extend.</td>
</tr>
<tr>
<td class="first">obj:Object..</td>
<td class="last">Multiple objects to extend with.</td>
</tr>
</table>
<h4>Returns</h4>
<div class="returns">Object - Same as target, the extended object.</div>
</div>
<div class="memberDetails" id="formatSize">
<h3>formatSize<span class="memberType">method</span>
</h3>
<code class="syntax">public static
function formatSize(size:Number):String</code>
<div class="memberDescription">Formats the specified number as a size string for example 1024 becomes 1 KB.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">size:Number</td>
<td class="last">Size to format as string.</td>
</tr>
</table>
<h4>Returns</h4>
<div class="returns">String - Formatted size string.</div>
</div>
<div class="memberDetails" id="getPos">
<h3>getPos<span class="memberType">method</span>
</h3>
<code class="syntax">public static
function getPos(node:Element, root:Element):object</code>
<div class="memberDescription">Returns the absolute x, y position of an Element. The position will be returned in a object with x, y fields.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">node:Element</td>
<td class="last">HTML element or element id to get x, y position from.</td>
</tr>
<tr>
<td class="first">root:Element</td>
<td class="last">Optional root element to stop calculations at.</td>
</tr>
</table>
<h4>Returns</h4>
<div class="returns">object - Absolute position of the specified element object with x, y fields.</div>
</div>
<div class="memberDetails" id="guid">
<h3>guid<span class="memberType">method</span>
</h3>
<code class="syntax">public static
function guid():String</code>
<div class="memberDescription">Generates an unique ID. This is 99.99% unique since it takes the current time and 5 random numbers.
The only way a user would be able to get the same ID is if the two persons at the same exact milisecond manages
to get 5 the same random numbers between 0-65535 it also uses a counter so each call will be guaranteed to be page unique.
It's more probable for the earth to be hit with an ansteriod. You can also if you want to be 100% sure set the plupload.guidPrefix property
to an user unique key.
</div>
<h4>Returns</h4>
<div class="returns">String - Virtually unique id.</div>
</div>
<div class="memberDetails" id="parseSize">
<h3>parseSize<span class="memberType">method</span>
</h3>
<code class="syntax">public static
function parseSize(size:String/Number):Number</code>
<div class="memberDescription">Parses the specified size string into a byte value. For example 10kb becomes 10240.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">size:String/Number</td>
<td class="last">String to parse or number to just pass through.</td>
</tr>
</table>
<h4>Returns</h4>
<div class="returns">Number - Size in bytes.</div>
</div>
<div class="memberDetails" id="toArray">
<h3>toArray<span class="memberType">method</span>
</h3>
<code class="syntax">public static
function toArray(obj:Object):Array</code>
<div class="memberDescription">Forces anything into an array.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">obj:Object</td>
<td class="last">Object with length field.</td>
</tr>
</table>
<h4>Returns</h4>
<div class="returns">Array - Array object containing all items.</div>
</div>
<div class="memberDetails last" id="xmlEncode">
<h3>xmlEncode<span class="memberType">method</span>
</h3>
<code class="syntax">public static
function xmlEncode(s:String):String</code>
<div class="memberDescription">Encodes the specified string.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">s:String</td>
<td class="last">String to encode.</td>
</tr>
</table>
<h4>Returns</h4>
<div class="returns">String - Encoded string.</div>
</div>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,95 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>Class: plupload.runtimes.BrowserPlus</title>
<meta name="generator" content="MoxieDoc" />
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/grids.css" />
<link rel="stylesheet" type="text/css" href="css/general.css" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3");
</script>
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
<script type="text/javascript" src="js/general.js"></script>
</head>
<body>
<div class="classDetailsContent">
<h1>plupload.runtimes.BrowserPlus</h1>
<table class="classDetails">
<tr>
<td class="first">Namespace</td>
<td class="last">plupload.runtimes</td>
</tr>
<tr>
<td class="first">Class</td>
<td class="last">BrowserPlus</td>
</tr>
<tr>
<td class="first">Type</td>
<td class="last">Singleton</td>
</tr>
<tr>
<td class="first">Inheritance</td>
<td class="last inheritageList">
<span>BrowserPlus</span>
<span class="last">
<a href="class_plupload.Runtime.html">Runtime</a>
</span>
</td>
</tr>
</table>
<div class="classDescription">Yahoo BrowserPlus implementation. This runtime supports these features: dragdrop, jpgresize, pngresize.
</div>
<div class="summaryLists">
<h2>Public Methods</h2>
<table class="Methods summary">
<thead>
<tr>
<th>Method</th>
<th>Defined By</th>
</tr>
</thead>
<tbody>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.runtimes.BrowserPlus.html#init">init</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</div>
<div class="summary">
<span class="static">[static] </span>Initializes the browserplus runtime.</div>
</td>
<td class="last">BrowserPlus</td>
</tr>
</tbody>
</table>
</div>
<div class="detailsList">
<div class="details">
<h2>Method details</h2>
<div class="memberDetails last" id="init">
<h3>init<span class="memberType">method</span>
</h3>
<code class="syntax">public static
function init(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</code>
<div class="memberDescription">Initializes the browserplus runtime.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance that needs to be initialized.</td>
</tr>
<tr>
<td class="first">callback:function</td>
<td class="last">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,95 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>Class: plupload.runtimes.Flash</title>
<meta name="generator" content="MoxieDoc" />
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/grids.css" />
<link rel="stylesheet" type="text/css" href="css/general.css" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3");
</script>
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
<script type="text/javascript" src="js/general.js"></script>
</head>
<body>
<div class="classDetailsContent">
<h1>plupload.runtimes.Flash</h1>
<table class="classDetails">
<tr>
<td class="first">Namespace</td>
<td class="last">plupload.runtimes</td>
</tr>
<tr>
<td class="first">Class</td>
<td class="last">Flash</td>
</tr>
<tr>
<td class="first">Type</td>
<td class="last">Singleton</td>
</tr>
<tr>
<td class="first">Inheritance</td>
<td class="last inheritageList">
<span>Flash</span>
<span class="last">
<a href="class_plupload.Runtime.html">Runtime</a>
</span>
</td>
</tr>
</table>
<div class="classDescription">FlashRuntime implementation. This runtime supports these features: jpgresize, pngresize, chunks.
</div>
<div class="summaryLists">
<h2>Public Methods</h2>
<table class="Methods summary">
<thead>
<tr>
<th>Method</th>
<th>Defined By</th>
</tr>
</thead>
<tbody>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.runtimes.Flash.html#init">init</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</div>
<div class="summary">
<span class="static">[static] </span>Initializes the upload runtime.</div>
</td>
<td class="last">Flash</td>
</tr>
</tbody>
</table>
</div>
<div class="detailsList">
<div class="details">
<h2>Method details</h2>
<div class="memberDetails last" id="init">
<h3>init<span class="memberType">method</span>
</h3>
<code class="syntax">public static
function init(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</code>
<div class="memberDescription">Initializes the upload runtime. This method should add necessary items to the DOM and register events needed for operation.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance that needs to be initialized.</td>
</tr>
<tr>
<td class="first">callback:function</td>
<td class="last">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,95 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>Class: plupload.runtimes.Gears</title>
<meta name="generator" content="MoxieDoc" />
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/grids.css" />
<link rel="stylesheet" type="text/css" href="css/general.css" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3");
</script>
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
<script type="text/javascript" src="js/general.js"></script>
</head>
<body>
<div class="classDetailsContent">
<h1>plupload.runtimes.Gears</h1>
<table class="classDetails">
<tr>
<td class="first">Namespace</td>
<td class="last">plupload.runtimes</td>
</tr>
<tr>
<td class="first">Class</td>
<td class="last">Gears</td>
</tr>
<tr>
<td class="first">Type</td>
<td class="last">Singleton</td>
</tr>
<tr>
<td class="first">Inheritance</td>
<td class="last inheritageList">
<span>Gears</span>
<span class="last">
<a href="class_plupload.Runtime.html">Runtime</a>
</span>
</td>
</tr>
</table>
<div class="classDescription">Gears implementation. This runtime supports these features: dragdrop, jpgresize, pngresize, chunks.
</div>
<div class="summaryLists">
<h2>Public Methods</h2>
<table class="Methods summary">
<thead>
<tr>
<th>Method</th>
<th>Defined By</th>
</tr>
</thead>
<tbody>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.runtimes.Gears.html#init">init</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</div>
<div class="summary">
<span class="static">[static] </span>Initializes the upload runtime.</div>
</td>
<td class="last">Gears</td>
</tr>
</tbody>
</table>
</div>
<div class="detailsList">
<div class="details">
<h2>Method details</h2>
<div class="memberDetails last" id="init">
<h3>init<span class="memberType">method</span>
</h3>
<code class="syntax">public static
function init(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</code>
<div class="memberDescription">Initializes the upload runtime.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance that needs to be initialized.</td>
</tr>
<tr>
<td class="first">callback:function</td>
<td class="last">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,95 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>Class: plupload.runtimes.Html4</title>
<meta name="generator" content="MoxieDoc" />
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/grids.css" />
<link rel="stylesheet" type="text/css" href="css/general.css" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3");
</script>
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
<script type="text/javascript" src="js/general.js"></script>
</head>
<body>
<div class="classDetailsContent">
<h1>plupload.runtimes.Html4</h1>
<table class="classDetails">
<tr>
<td class="first">Namespace</td>
<td class="last">plupload.runtimes</td>
</tr>
<tr>
<td class="first">Class</td>
<td class="last">Html4</td>
</tr>
<tr>
<td class="first">Type</td>
<td class="last">Singleton</td>
</tr>
<tr>
<td class="first">Inheritance</td>
<td class="last inheritageList">
<span>Html4</span>
<span class="last">
<a href="class_plupload.Runtime.html">Runtime</a>
</span>
</td>
</tr>
</table>
<div class="classDescription">HTML4 implementation. This runtime has no special features it uses an form that posts files into an hidden iframe.
</div>
<div class="summaryLists">
<h2>Public Methods</h2>
<table class="Methods summary">
<thead>
<tr>
<th>Method</th>
<th>Defined By</th>
</tr>
</thead>
<tbody>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.runtimes.Html4.html#init">init</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</div>
<div class="summary">
<span class="static">[static] </span>Initializes the upload runtime.</div>
</td>
<td class="last">Html4</td>
</tr>
</tbody>
</table>
</div>
<div class="detailsList">
<div class="details">
<h2>Method details</h2>
<div class="memberDetails last" id="init">
<h3>init<span class="memberType">method</span>
</h3>
<code class="syntax">public static
function init(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</code>
<div class="memberDescription">Initializes the upload runtime.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance that needs to be initialized.</td>
</tr>
<tr>
<td class="first">callback:function</td>
<td class="last">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,95 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>Class: plupload.runtimes.Html5</title>
<meta name="generator" content="MoxieDoc" />
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/grids.css" />
<link rel="stylesheet" type="text/css" href="css/general.css" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3");
</script>
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
<script type="text/javascript" src="js/general.js"></script>
</head>
<body>
<div class="classDetailsContent">
<h1>plupload.runtimes.Html5</h1>
<table class="classDetails">
<tr>
<td class="first">Namespace</td>
<td class="last">plupload.runtimes</td>
</tr>
<tr>
<td class="first">Class</td>
<td class="last">Html5</td>
</tr>
<tr>
<td class="first">Type</td>
<td class="last">Singleton</td>
</tr>
<tr>
<td class="first">Inheritance</td>
<td class="last inheritageList">
<span>Html5</span>
<span class="last">
<a href="class_plupload.Runtime.html">Runtime</a>
</span>
</td>
</tr>
</table>
<div class="classDescription">HMTL5 implementation. This runtime supports these features: dragdrop, jpgresize, pngresize.
</div>
<div class="summaryLists">
<h2>Public Methods</h2>
<table class="Methods summary">
<thead>
<tr>
<th>Method</th>
<th>Defined By</th>
</tr>
</thead>
<tbody>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.runtimes.Html5.html#init">init</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</div>
<div class="summary">
<span class="static">[static] </span>Initializes the upload runtime.</div>
</td>
<td class="last">Html5</td>
</tr>
</tbody>
</table>
</div>
<div class="detailsList">
<div class="details">
<h2>Method details</h2>
<div class="memberDetails last" id="init">
<h3>init<span class="memberType">method</span>
</h3>
<code class="syntax">public static
function init(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</code>
<div class="memberDescription">Initializes the upload runtime.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance that needs to be initialized.</td>
</tr>
<tr>
<td class="first">callback:function</td>
<td class="last">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,95 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>Class: plupload.runtimes.Silverlight</title>
<meta name="generator" content="MoxieDoc" />
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/grids.css" />
<link rel="stylesheet" type="text/css" href="css/general.css" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3");
</script>
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
<script type="text/javascript" src="js/general.js"></script>
</head>
<body>
<div class="classDetailsContent">
<h1>plupload.runtimes.Silverlight</h1>
<table class="classDetails">
<tr>
<td class="first">Namespace</td>
<td class="last">plupload.runtimes</td>
</tr>
<tr>
<td class="first">Class</td>
<td class="last">Silverlight</td>
</tr>
<tr>
<td class="first">Type</td>
<td class="last">Singleton</td>
</tr>
<tr>
<td class="first">Inheritance</td>
<td class="last inheritageList">
<span>Silverlight</span>
<span class="last">
<a href="class_plupload.Runtime.html">Runtime</a>
</span>
</td>
</tr>
</table>
<div class="classDescription">Silverlight implementation. This runtime supports these features: jpgresize, pngresize, chunks.
</div>
<div class="summaryLists">
<h2>Public Methods</h2>
<table class="Methods summary">
<thead>
<tr>
<th>Method</th>
<th>Defined By</th>
</tr>
</thead>
<tbody>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.runtimes.Silverlight.html#init">init</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</div>
<div class="summary">
<span class="static">[static] </span>Initializes the upload runtime.</div>
</td>
<td class="last">Silverlight</td>
</tr>
</tbody>
</table>
</div>
<div class="detailsList">
<div class="details">
<h2>Method details</h2>
<div class="memberDetails last" id="init">
<h3>init<span class="memberType">method</span>
</h3>
<code class="syntax">public static
function init(uploader:<a href="class_plupload.Uploader.html">Uploader</a>, callback:function):void</code>
<div class="memberDescription">Initializes the upload runtime. This runtime supports these features: jpgresize, pngresize, chunks.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance that needs to be initialized.</td>
</tr>
<tr>
<td class="first">callback:function</td>
<td class="last">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,235 @@
body, html {
overflow: hidden;
background-color: #DFE8F6;
}
#doc3 {
margin: 0;
/* Fix for scrolling issue on Gecko */
position: fixed; width: 100%; top: 0; left: 0;
}
#bd, #bd, #yui-main, #detailsView, #classView {
height: 100%;
}
#hd {
background: #1E4176;
border-bottom: 1px solid #99BBE8;
}
#hd h1 {
font-family:Verdana,Arial,Helvetica,sans-serif;
font-size: 16px;
padding: 4px 0 4px 8px;
color: #fff;
}
#yui-main #detailsView {
overflow: auto;
margin: 4px;
margin-left: 260px;
border: 1px solid #99BBE8;
background: #FFF;
}
#bd #classView {
overflow: auto;
width: 250px;
margin: 4px;
border: 1px solid #99BBE8;
background: #FFF;
}
.classDetailsContent, .memberDetailsContent {
margin: 10px;
line-height: 150%;
}
body, td, th {
font-family: "Trebuchet MS", "Bitstream Vera Sans", Tahoma,Verdana,Arial,Helvetica,sans-serif;
font-size: 13px;
}
h1, h2, h3, h4, h5, h6 {
font-family: "Trebuchet MS", "Bitstream Vera Sans", verdana, lucida, arial, helvetica, sans-serif;
font-weight: bold;
letter-spacing: 1px;
margin-bottom: 3px;
margin-top: 3px;
width: 90%;
}
h1 {
font-size: 20px;
}
h2 {
font-size: 16px;
}
h3 {
font-size: 16px;
}
h4 {
font-size: 13px;
}
a, a:visited, a:active, a:link {
color: #0000CC;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
table.summary {
border: 1px solid #999999;
margin-bottom: 20px;
margin-right: 10px;
margin-top: 10px;
width: 100%;
border-collapse: collapse;
}
table.summary th {
font-weight: bold;
text-align: left;
vertical-align: bottom;
background-color: #627C9D;
color: #FFFFFF;
white-space: nowrap;
padding: 4px;
}
table.summary td {
border: 1px solid #999999;
padding: 4px;
}
table.summary a.memberName {
font-weight: bold;
}
table.summary tr.even {
background: #f2f2f2;
}
table.summary td.first div {
margin-left: 30px;
}
table.summary td.first {
width: 95%;
}
table.summary td.last {
width: 5%;
}
table.summary .deprecated {
margin: 0;
}
.params, .returns, .see {
margin-left: 20px;
margin-bottom: 10px;
}
.params td.last {
padding-left: 10px;
}
.classDescription, .memberDescription, .deprecated {
margin: 10px 0 10px 0;
}
.inherited td.first {
background: url(../img/inherited.gif) no-repeat 10px 5px;
}
.inheritageList span {
padding-right: 20px;
margin-right: 5px;
background: url(../img/inherit-arrow.gif) no-repeat center right;
}
.inheritageList span.last {
background: transparent;
}
.classDetails .first {
font-weight: bold;
padding-right: 20px;
}
.memberDetails {
margin-bottom: 10px;
}
pre {
background-color: #F2F2F2;
font-family: "Lucida Console","Courier New",Courier,monospace;
font-size: 12px;
margin-bottom: 10px;
margin-top: 10px;
overflow: auto;
padding: 5px 5px 5px 5px;
}
.memberType {
padding-left: 10px;
font-size: 13px;
font-weight: normal;
}
.selected {
font-weight: bold;
}
.memberDetails {
border-bottom: 1px solid gray;
margin-bottom: 10px;
}
.details {
padding-bottom: 10px;
}
.details .last {
border: 0;
}
.details h2 {
width: 100%;
background-color: #627C9D;
color: #FFF;
padding: 4px;
}
.memberDetails {
padding-left: 15px;
}
code.syntax {
background-color: #F2F2F2;
}
.deprecated {
font-weight: bold;
}
.static {
color: gray;
}
.version span, .author span {
font-weight: bold;
}
#yui-main #detailsView.loading {
background: #FFF url('../img/loader.gif') no-repeat center center;
}

View File

@@ -0,0 +1,467 @@
/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0
*/
/**
* YUI Grids
* @module grids
* @namespace yui-
* @requires reset, fonts
*/
/**
* Note: Throughout this file, the *property (star-property) filter is used
* to give a value to IE that other browsers do not see. _property is only seen
* by IE7, so the combo of *prop and _prop can target between IE6 and IE7.
*
* More information on these filters and related validation errors:
* http://tech.groups.yahoo.com/group/ydn-javascript/message/40059
*/
/**
* Section: General Rules
*/
body {
text-align: center;
}
/**
* Section: Page Width Rules (#doc, #doc2, #doc3, #doc4)
*/
#doc,#doc2,#doc3,#doc4,
.yui-t1,.yui-t2,.yui-t3,.yui-t4,.yui-t5,.yui-t6,.yui-t7 {
margin: auto;
text-align: left;
width: 57.69em;
*width: 56.25em;
}
/* 950 Centered (doc2) */
#doc2 {
width: 73.076em;
*width: 71.25em;
}
/* 100% (doc3) */
#doc3 {
/**
* Left and Right margins are not a structural part of Grids. Without them
* Grids works fine, but content bleeds to the very edge of the document, which
* often impairs readability and usability. They are provided because they
* prevent the content from "bleeding" into the browser's chrome.
*/
margin: auto 10px;
width: auto;
}
/* 974 Centered (doc4) */
#doc4 {
width: 74.923em;
*width: 73.05em;
}
/**
* Section: Preset Template Rules (.yui-t[1-6])
*/
.yui-b {
/* to preserve source-order independence for Gecko */
position: relative;
}
.yui-b {
/* to preserve source-order independence for IE */
_position: static;
}
#yui-main .yui-b {
/* to preserve source-order independence for Gecko */
position: static;
}
#yui-main,
.yui-g .yui-u .yui-g {
width: 100%;
}
.yui-t1 #yui-main,
.yui-t2 #yui-main,
.yui-t3 #yui-main {
float: right;
/* IE: preserve layout at narrow widths */
margin-left: -25em;
}
.yui-t4 #yui-main,
.yui-t5 #yui-main,
.yui-t6 #yui-main {
float: left;
/* IE: preserve layout at narrow widths */
margin-right: -25em;
}
/**
* For Specific Template Presets
*/
.yui-t1 .yui-b {
float: left;
width: 12.30769em;
*width: 12.00em;
}
.yui-t1 #yui-main .yui-b {
margin-left: 13.30769em;
*margin-left: 13.05em;
}
.yui-t2 .yui-b {
float: left;
width: 13.8461em;
*width: 13.50em;
}
.yui-t2 #yui-main .yui-b {
margin-left: 14.8461em;
*margin-left: 14.55em;
}
.yui-t3 .yui-b {
float: left;
width: 23.0769em;
*width: 22.50em;
}
.yui-t3 #yui-main .yui-b {
margin-left: 24.0769em;
*margin-left: 23.62em;
}
.yui-t4 .yui-b {
float: right;
width: 13.8456em;
*width: 13.50em;
}
.yui-t4 #yui-main .yui-b {
margin-right: 14.8456em;
*margin-right: 14.55em;
}
.yui-t5 .yui-b {
float: right;
width: 18.4615em;
*width: 18.00em;
}
.yui-t5 #yui-main .yui-b {
margin-right: 19.4615em;
*margin-right: 19.125em;
}
.yui-t6 .yui-b {
float: right;
width: 23.0769em;
*width: 22.50em;
}
.yui-t6 #yui-main .yui-b {
margin-right: 24.0769em;
*margin-right: 23.62em;
}
.yui-t7 #yui-main .yui-b {
display: block;
margin: 0 0 1em 0;
}
#yui-main .yui-b {
float: none;
width: auto;
}
/**
* Section: Grids and Nesting Grids
*/
/* Children generally take half the available space */
.yui-gb .yui-u,
.yui-g .yui-gb .yui-u,
.yui-gb .yui-g,
.yui-gb .yui-gb,
.yui-gb .yui-gc,
.yui-gb .yui-gd,
.yui-gb .yui-ge,
.yui-gb .yui-gf,
.yui-gc .yui-u,
.yui-gc .yui-g,
.yui-gd .yui-u {
float: left;
}
/* Float units (and sub grids) to the right */
.yui-g .yui-u,
.yui-g .yui-g,
.yui-g .yui-gb,
.yui-g .yui-gc,
.yui-g .yui-gd,
.yui-g .yui-ge,
.yui-g .yui-gf,
.yui-gc .yui-u,
.yui-gd .yui-g,
.yui-g .yui-gc .yui-u,
.yui-ge .yui-u,
.yui-ge .yui-g,
.yui-gf .yui-g,
.yui-gf .yui-u {
float: right;
}
/*Float units (and sub grids) to the left */
.yui-g div.first,
.yui-gb div.first,
.yui-gc div.first,
.yui-gd div.first,
.yui-ge div.first,
.yui-gf div.first,
.yui-g .yui-gc div.first,
.yui-g .yui-ge div.first,
.yui-gc div.first div.first {
float: left;
}
.yui-g .yui-u,
.yui-g .yui-g,
.yui-g .yui-gb,
.yui-g .yui-gc,
.yui-g .yui-gd,
.yui-g .yui-ge,
.yui-g .yui-gf {
width: 49.1%;
}
.yui-gb .yui-u,
.yui-g .yui-gb .yui-u,
.yui-gb .yui-g,
.yui-gb .yui-gb,
.yui-gb .yui-gc,
.yui-gb .yui-gd,
.yui-gb .yui-ge,
.yui-gb .yui-gf,
.yui-gc .yui-u,
.yui-gc .yui-g,
.yui-gd .yui-u {
width: 32%;
margin-left: 1.99%;
}
/* Give IE some extra breathing room for 1/3-based rounding issues */
.yui-gb .yui-u {
*margin-left: 1.9%;
*width: 31.9%;
}
.yui-gc div.first,
.yui-gd .yui-u {
width: 66%;
}
.yui-gd div.first {
width: 32%;
}
.yui-ge div.first,
.yui-gf .yui-u {
width: 74.2%;
}
.yui-ge .yui-u,
.yui-gf div.first {
width: 24%;
}
.yui-g .yui-gb div.first,
.yui-gb div.first,
.yui-gc div.first,
.yui-gd div.first {
margin-left: 0;
}
/**
* Section: Deep Nesting
*/
.yui-g .yui-g .yui-u,
.yui-gb .yui-g .yui-u,
.yui-gc .yui-g .yui-u,
.yui-gd .yui-g .yui-u,
.yui-ge .yui-g .yui-u,
.yui-gf .yui-g .yui-u {
width: 49%;
*width: 48.1%;
*margin-left: 0;
}
.yui-g .yui-g .yui-u {
width: 48.1%;
}
/*SF 1927599 from 1.14 to 2.6.0*/
.yui-g .yui-gb div.first,
.yui-gb .yui-gb div.first {
*margin-right: 0;
*width: 32%;
_width: 31.7%;
}
.yui-g .yui-gc div.first,
.yui-gd .yui-g {
width: 66%;
}
.yui-gb .yui-g div.first {
*margin-right: 4%;
_margin-right: 1.3%;
}
.yui-gb .yui-gc div.first,
.yui-gb .yui-gd div.first {
*margin-right: 0;
}
.yui-gb .yui-gb .yui-u,
.yui-gb .yui-gc .yui-u {
*margin-left: 1.8%;
_margin-left: 4%;
}
.yui-g .yui-gb .yui-u {
_margin-left: 1.0%;
}
.yui-gb .yui-gd .yui-u {
*width: 66%;
_width: 61.2%;
}
.yui-gb .yui-gd div.first {
*width: 31%;
_width: 29.5%;
}
.yui-g .yui-gc .yui-u,
.yui-gb .yui-gc .yui-u {
width: 32%;
_float: right;
margin-right: 0;
_margin-left: 0;
}
.yui-gb .yui-gc div.first {
width: 66%;
*float: left;
*margin-left: 0;
}
.yui-gb .yui-ge .yui-u,
.yui-gb .yui-gf .yui-u {
margin: 0;
}
.yui-gb .yui-gb .yui-u {
_margin-left: .7%;
}
.yui-gb .yui-g div.first,
.yui-gb .yui-gb div.first {
*margin-left: 0;
}
.yui-gc .yui-g .yui-u,
.yui-gd .yui-g .yui-u {
*width: 48.1%;
*margin-left: 0;
}
.yui-gb .yui-gd div.first {
width: 32%;
}
.yui-g .yui-gd div.first {
_width: 29.9%;
}
.yui-ge .yui-g {
width: 24%;
}
.yui-gf .yui-g {
width: 74.2%;
}
.yui-gb .yui-ge div.yui-u,
.yui-gb .yui-gf div.yui-u {
float: right;
}
.yui-gb .yui-ge div.first,
.yui-gb .yui-gf div.first {
float: left;
}
/* Width Accommodation for Nested Contexts */
.yui-gb .yui-ge .yui-u,
.yui-gb .yui-gf div.first {
*width: 24%;
_width: 20%;
}
/* Width Accommodation for Nested Contexts */
.yui-gb .yui-ge div.first,
.yui-gb .yui-gf .yui-u {
*width: 73.5%;
_width: 65.5%;
}
/* Patch for GD within GE */
.yui-ge div.first .yui-gd .yui-u {
width: 65%;
}
.yui-ge div.first .yui-gd div.first {
width: 32%;
}
/* @group Clearing */
#hd:after,
#bd:after,
#ft:after,
.yui-g:after,
.yui-gb:after,
.yui-gc:after,
.yui-gd:after,
.yui-ge:after,
.yui-gf:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
#hd,
#bd,
#ft,
.yui-g,
.yui-gb,
.yui-gc,
.yui-gd,
.yui-ge,
.yui-gf {
zoom: 1;
}

View File

@@ -0,0 +1,75 @@
.treeview, .treeview ul {
padding: 0;
margin: 0;
list-style: none;
}
.treeview ul {
background-color: white;
margin-top: 4px;
}
.treeview .hitarea {
background: transparent -64px -25px no-repeat;
height: 16px;
width: 16px;
margin-left: -16px;
float: left;
cursor: pointer;
}
/* fix for IE6 */
* html .hitarea {
display: inline;
float: none;
}
.treeview li {
margin: 0;
padding: 3px 0pt 3px 16px;
}
.treeview a.selected {
background-color: #eee;
}
#treecontrol { margin: 1em 0; display: none; }
.treeview li { background: transparent 0 0 no-repeat; }
.treeview li.collapsable, .treeview li.expandable { background-position: 0 -176px; }
.treeview .expandable-hitarea { background-position: -80px -3px; }
.treeview li.last { background-position: 0 -1766px }
.treeview li.lastCollapsable { background-position: 0 -111px }
.treeview li.lastExpandable { background-position: -32px -67px }
.treeview div.lastCollapsable-hitarea, .treeview div.lastExpandable-hitarea { background-position: 0; }
.treeview-famfamfam .hitarea, .treeview-famfamfam li.lastCollapsable, .treeview-famfamfam li.lastExpandable { background-image: url(../img/treeview-famfamfam.gif); }
.classtree li {
font-family: arial,tahoma,helvetica,sans-serif;
font-size: 12px;
}
.classtree li { padding: 3px 0 2px 16px; }
.classtree span {
padding: 1px 0 1px 18px;
display: block;
}
.classtree span.root { background: url(../img/root.gif) 0 3px no-repeat;}
.classtree span.namespace { background: url(../img/namespace.gif) 0 0 no-repeat;}
.classtree span.class { background: url(../img/class.gif) 0 0 no-repeat; }
.classtree span.property { background: url(../img/property.gif) 0 0 no-repeat; }
.classtree span.method { background: url(../img/method.gif) 0 0 no-repeat; }
.classtree span.event { background: url(../img/event.gif) 0 0 no-repeat; }
.classtree span.singleton { background: url(../img/static.gif) 0 0 no-repeat; }

View File

@@ -0,0 +1,142 @@
/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0
*/
/**
* YUI Reset
* @module reset
* @namespace
* @requires
*/
html {
color: #000;
background: #FFF;
}
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
button,
textarea,
p,
blockquote,
th,
td {
margin: 0;
padding: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
fieldset,
img {
border: 0;
}
address,
caption,
cite,
code,
dfn,
em,
strong,
th,
var,
optgroup {
font-style: inherit;
font-weight: inherit;
}
del,
ins {
text-decoration: none;
}
li {
list-style: none;
}
caption,
th {
text-align: left;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 100%;
font-weight: normal;
}
q:before,
q:after {
content: '';
}
abbr,
acronym {
border: 0;
font-variant: normal;
}
sup {
vertical-align: baseline;
}
sub {
vertical-align: baseline;
}
/*because legend doesn't inherit in IE */
legend {
color: #000;
}
input,
button,
textarea,
select,
optgroup,
option {
font-family: inherit;
font-size: inherit;
font-style: inherit;
font-weight: inherit;
}
/*@purpose To enable resizing for IE */
/*@branch For IE6-Win, IE7-Win */
input,
button,
textarea,
select {
*font-size: 100%;
}

View File

@@ -0,0 +1,342 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*
* @version
* 2.0.320 (May 03 2009)
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* @license
* This file is part of SyntaxHighlighter.
*
* SyntaxHighlighter is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SyntaxHighlighter is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
*/
.syntaxhighlighter,
.syntaxhighlighter div,
.syntaxhighlighter code,
.syntaxhighlighter span
{
margin: 0 !important;
padding: 0 !important;
border: 0 !important;
outline: 0 !important;
background: none !important;
text-align: left !important;
float: none !important;
vertical-align: baseline !important;
position: static !important;
left: auto !important;
top: auto !important;
right: auto !important;
bottom: auto !important;
height: auto !important;
width: auto !important;
line-height: 1.1em !important;
font-family: "Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
font-weight: normal !important;
font-style: normal !important;
font-size: 1em !important;
}
.syntaxhighlighter
{
width: 100% !important;
margin: 1em 0 1em 0 !important;
padding: 1px !important; /* adds a little border on top and bottom */
position: relative !important;
}
.syntaxhighlighter code {
display: inline !important;
}
.syntaxhighlighter .bold {
font-weight: bold !important;
}
.syntaxhighlighter .italic {
font-style: italic !important;
}
.syntaxhighlighter .line .number
{
float: left !important;
width: 3em !important;
padding-right: .3em !important;
text-align: right !important;
display: block !important;
}
/* Disable numbers when no gutter option is set */
.syntaxhighlighter.nogutter .line .number
{
display: none !important;
}
.syntaxhighlighter .line .content
{
margin-left: 3.3em !important;
padding-left: .5em !important;
display: block !important;
}
.syntaxhighlighter .line .content .block
{
display: block !important;
padding-left: 1.5em !important;
text-indent: -1.5em !important;
}
.syntaxhighlighter .line .content .spaces
{
display: none !important;
}
/* Disable border and margin on the lines when no gutter option is set */
.syntaxhighlighter.nogutter .line .content
{
margin-left: 0 !important;
border-left: none !important;
}
.syntaxhighlighter .bar
{
display: none !important;
}
.syntaxhighlighter .bar.show
{
display: block !important;
}
.syntaxhighlighter.collapsed .bar
{
display: block !important;
}
.syntaxhighlighter.nogutter .ruler
{
margin-left: 0 !important;
padding-left: 0 !important;
}
.syntaxhighlighter .ruler
{
padding: 0 0 .5em .5em !important;
margin-left: 3.3em !important;
overflow: hidden !important;
}
/* Adjust some properties when collapsed */
.syntaxhighlighter.collapsed .lines,
.syntaxhighlighter.collapsed .ruler
{
display: none !important;
}
.syntaxhighlighter .lines.no-wrap
{
overflow: auto;
overflow-y: hidden;
}
/* Styles for the toolbar */
.syntaxhighlighter .toolbar
{
position: absolute !important;
right: 0px !important;
top: 0px !important;
font-size: 1px !important;
padding: 8px 8px 8px 0 !important; /* in px because images don't scale with ems */
}
.syntaxhighlighter.collapsed .toolbar
{
font-size: 80% !important;
padding: .2em 0 .5em .5em !important;
position: static !important;
}
.syntaxhighlighter .toolbar a.item,
.syntaxhighlighter .toolbar .item
{
display: block !important;
float: left !important;
margin-left: 8px !important;
background-repeat: no-repeat !important;
overflow: hidden !important;
text-indent: -5000px !important;
}
.syntaxhighlighter.collapsed .toolbar .item
{
display: none !important;
}
.syntaxhighlighter.collapsed .toolbar .item.expandSource
{
background-image: url(../img/magnifier.png) !important;
display: inline !important;
text-indent: 0 !important;
width: auto !important;
float: none !important;
height: 16px !important;
padding-left: 20px !important;
}
.syntaxhighlighter .toolbar .item.viewSource
{
background-image: url(../img/page_white_code.png) !important;
}
.syntaxhighlighter .toolbar .item.printSource
{
background-image: url(../img/printer.png) !important;
}
.syntaxhighlighter .toolbar .item.copyToClipboard
{
text-indent: 0 !important;
background: none !important;
overflow: visible !important;
}
.syntaxhighlighter .toolbar .item.about
{
background-image: url(../img/help.png) !important;
}
/**
* Print view.
* Colors are based on the default theme without background.
*/
.syntaxhighlighter.printing,
.syntaxhighlighter.printing .line.alt1 .content,
.syntaxhighlighter.printing .line.alt2 .content,
.syntaxhighlighter.printing .line.highlighted .number,
.syntaxhighlighter.printing .line.highlighted.alt1 .content,
.syntaxhighlighter.printing .line.highlighted.alt2 .content,
.syntaxhighlighter.printing .line .content .block
{
background: none !important;
}
.syntaxhighlighter .no-wrap .line .content .block
{
white-space: nowrap !important;
}
/* Gutter line numbers */
.syntaxhighlighter.printing .line .number
{
color: #bbb !important;
}
/* Add border to the lines */
.syntaxhighlighter.printing .line .content
{
color: #000 !important;
}
/* Toolbar when visible */
.syntaxhighlighter.printing .toolbar,
.syntaxhighlighter.printing .ruler
{
display: none !important;
}
.syntaxhighlighter.printing a
{
text-decoration: none !important;
}
.syntaxhighlighter.printing .plain,
.syntaxhighlighter.printing .plain a
{
color: #000 !important;
}
.syntaxhighlighter.printing .comments,
.syntaxhighlighter.printing .comments a
{
color: #008200 !important;
}
.syntaxhighlighter.printing .string,
.syntaxhighlighter.printing .string a
{
color: blue !important;
}
.syntaxhighlighter.printing .keyword
{
color: #069 !important;
font-weight: bold !important;
}
.syntaxhighlighter.printing .preprocessor
{
color: gray !important;
}
.syntaxhighlighter.printing .variable
{
color: #a70 !important;
}
.syntaxhighlighter.printing .value
{
color: #090 !important;
}
.syntaxhighlighter.printing .functions
{
color: #ff1493 !important;
}
.syntaxhighlighter.printing .constants
{
color: #0066CC !important;
}
.syntaxhighlighter.printing .script
{
font-weight: bold !important;
}
.syntaxhighlighter.printing .color1,
.syntaxhighlighter.printing .color1 a
{
color: #808080 !important;
}
.syntaxhighlighter.printing .color2,
.syntaxhighlighter.printing .color2 a
{
color: #ff1493 !important;
}
.syntaxhighlighter.printing .color3,
.syntaxhighlighter.printing .color3 a
{
color: red !important;
}

View File

@@ -0,0 +1,191 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*
* @version
* 2.0.320 (May 03 2009)
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* @license
* This file is part of SyntaxHighlighter.
*
* SyntaxHighlighter is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SyntaxHighlighter is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
*/
/************************************
* Default Syntax Highlighter theme.
*
* Interface elements.
************************************/
.syntaxhighlighter
{
background-color: #E7E5DC !important;
}
/* Highlighed line number */
.syntaxhighlighter .line.highlighted .number
{
background-color: #6CE26C !important;
color: black !important;
}
/* Highlighed line */
.syntaxhighlighter .line.highlighted.alt1 .content,
.syntaxhighlighter .line.highlighted.alt2 .content
{
background-color: #6CE26C !important;
}
/* Gutter line numbers */
.syntaxhighlighter .line .number
{
color: #5C5C5C !important;
}
/* Add border to the lines */
.syntaxhighlighter .line .content
{
border-left: 3px solid #99BBE8 !important;
color: #000 !important;
}
.syntaxhighlighter.printing .line .content
{
border: 0 !important;
}
/* First line */
.syntaxhighlighter .line.alt1 .content
{
background-color: #fff !important;
}
/* Second line */
.syntaxhighlighter .line.alt2 .content
{
background-color: #F8F8F8 !important;
}
.syntaxhighlighter .line .content .block
{
background: url(../img/wrapping.png) 0 1.1em no-repeat !important;
}
.syntaxhighlighter .ruler
{
color: silver !important;
background-color: #F8F8F8 !important;
border-left: 3px solid #6CE26C !important;
}
.syntaxhighlighter.nogutter .ruler
{
border: 0 !important;
}
.syntaxhighlighter .toolbar
{
background-color: #F8F8F8 !important;
border: #E7E5DC solid 1px !important;
}
.syntaxhighlighter .toolbar a
{
color: #a0a0a0 !important;
}
.syntaxhighlighter .toolbar a:hover
{
color: red !important;
}
/************************************
* Actual syntax highlighter colors.
************************************/
.syntaxhighlighter .plain,
.syntaxhighlighter .plain a
{
color: #000 !important;
}
.syntaxhighlighter .comments,
.syntaxhighlighter .comments a
{
color: #008200 !important;
}
.syntaxhighlighter .string,
.syntaxhighlighter .string a
{
color: blue !important;
}
.syntaxhighlighter .keyword
{
color: #069 !important;
font-weight: bold !important;
}
.syntaxhighlighter .preprocessor
{
color: gray !important;
}
.syntaxhighlighter .variable
{
color: #a70 !important;
}
.syntaxhighlighter .value
{
color: #090 !important;
}
.syntaxhighlighter .functions
{
color: #ff1493 !important;
}
.syntaxhighlighter .constants
{
color: #0066CC !important;
}
.syntaxhighlighter .script
{
background-color: yellow !important;
}
.syntaxhighlighter .color1,
.syntaxhighlighter .color1 a
{
color: #808080 !important;
}
.syntaxhighlighter .color2,
.syntaxhighlighter .color2 a
{
color: #ff1493 !important;
}
.syntaxhighlighter .color3,
.syntaxhighlighter .color3 a
{
color: red !important;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 658 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 615 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 603 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 731 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 580 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 662 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 671 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 631 B

View File

@@ -0,0 +1,115 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Plupload API</title>
<meta name="generator" content="MoxieDoc" />
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/grids.css" />
<link rel="stylesheet" type="text/css" href="css/general.css" />
<link rel="stylesheet" type="text/css" href="css/jquery.treeview.css" />
<link type="text/css" rel="stylesheet" href="css/shCore.css" />
<link type="text/css" rel="stylesheet" href="css/shThemeMoxieDoc.css" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3");
</script>
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
<script type="text/javascript" src="js/general.js"></script>
<script type="text/javascript" src="js/shCore.js"></script>
<script type="text/javascript" src="js/shBrushJScript.js"></script>
</head>
<body>
<div id="doc3" class="yui-t1" style="height:500px">
<div id="hd">
<h1>Plupload API</h1>
</div>
<div id="bd">
<div id="yui-main">
<div id="detailsView" class="yui-b">
<!--Gets filled using Ajax-->
</div>
</div>
<div id="classView" class="yui-b">
<ul id="browser" class="classtree treeview-famfamfam">
<li>
<span class="root">API Documentation</span>
<ul>
<li class="closed">
<span class="namespace" title="Namespace">
<a href="#">plupload</a>
</span>
<ul>
<li class="closed">
<span class="namespace" title="Namespace">
<a href="#">runtimes</a>
</span>
<ul>
<li>
<span class="singleton" title="Singleton class">
<a href="class_plupload.runtimes.BrowserPlus.html">BrowserPlus</a>
</span>
</li>
<li>
<span class="singleton" title="Singleton class">
<a href="class_plupload.runtimes.Flash.html">Flash</a>
</span>
</li>
<li>
<span class="singleton" title="Singleton class">
<a href="class_plupload.runtimes.Gears.html">Gears</a>
</span>
</li>
<li>
<span class="singleton" title="Singleton class">
<a href="class_plupload.runtimes.Html4.html">Html4</a>
</span>
</li>
<li>
<span class="singleton" title="Singleton class">
<a href="class_plupload.runtimes.Html5.html">Html5</a>
</span>
</li>
<li>
<span class="singleton" title="Singleton class">
<a href="class_plupload.runtimes.Silverlight.html">Silverlight</a>
</span>
</li>
</ul>
</li>
<li>
<span class="class" title="Class">
<a href="class_plupload.Uploader.html">Uploader</a>
</span>
</li>
<li>
<span class="class" title="Class">
<a href="class_plupload.File.html">File</a>
</span>
</li>
<li>
<span class="singleton" title="Singleton class">
<a href="class_plupload.Runtime.html">Runtime</a>
</span>
</li>
<li>
<span class="class" title="Class">
<a href="class_plupload.QueueProgress.html">QueueProgress</a>
</span>
</li>
</ul>
</li>
<li>
<span class="singleton" title="Singleton class">
<a href="class_plupload.html">plupload</a>
</span>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</body>
</html>

Binary file not shown.

View File

@@ -0,0 +1,96 @@
(function($){
var currentPage, currentHash;
function resizeUI() {
$('#doc3').css('height', (window.innerHeight || document.documentElement.clientHeight) - $('#hd').height() - 12);
}
function scrollToHash(hash) {
if (hash) {
$(hash).each(function() {
$(this)[0].scrollIntoView();
});
}
}
function loadURL(url) {
var parts, hash;
// Trim away everything but the file name
url = /([^\/]+)$/.exec(url)[0];
// Parse out parts
parts = /^([^#]+)(#.+)?$/.exec(url);
hash = parts[2];
// In page link, no need to load anything
if (parts[1] == currentPage) {
if (hash)
scrollToHash(hash);
else
$('#detailsView')[0].scrollTop = 0;
return;
}
currentPage = parts[1];
$("#classView a.selected").removeClass('selected');
$("#classView a[href='" + currentPage.replace(/^.*\/([^\/]+)$/, '$1') + "']").addClass('selected').focus().parents("li.expandable").each(function() {
var li = $(this).removeClass("expandable").addClass("collapsable");
li.find("> div.expandable-hitarea").removeClass("expandable-hitarea").addClass("collapsable-hitarea");
li.find("> ul").show();
});
$('#detailsView').find("div.page").hide();
// Check if the page has been loaded before
if ($("#detailsView div[url='" + currentPage + "']").show().length == 0) {
$('#detailsView').addClass("loading");
// Load page and cache it in a div
$.get(currentPage, "", function(data) {
data = /<body[^>]*>([\s\S]+)<\/body>/.exec(data);
if (data) {
$('#detailsView').removeClass("loading").append('<div url="' + currentPage + '" class="page">' + data[1] + '</div>')[0].scrollTop = 0;
SyntaxHighlighter.config.clipboardSwf = 'js/clipboard.swf';
SyntaxHighlighter.highlight({gutter : false});
scrollToHash(hash);
}
});
} else
scrollToHash(hash);
}
$().ready(function(){
$("#browser").treeview();
$(window).resize(resizeUI).trigger('resize');
window.setInterval(function() {
var hash = document.location.hash;
if (hash != currentHash && hash) {
loadURL(hash.replace(/\-/g, '#').substring(1));
currentHash = hash;
}
}, 100);
$("a").live("click", function(e) {
var url = e.target.href;
if (e.button == 0) {
if (url.indexOf('class_') != -1 || url.indexOf('alias_') != -1 || url.indexOf('member_') != -1) {
document.location.hash = e.target.href.replace(/^.*\/([^\/]+)/, '$1').replace(/#/g, '-');
loadURL(url);
}
e.preventDefault();
}
});
});
})(jQuery);

View File

@@ -0,0 +1,15 @@
/*
* Treeview 1.4 - jQuery plugin to hide and show branches of a tree
*
* http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
* http://docs.jquery.com/Plugins/Treeview
*
* Copyright (c) 2007 Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Revision: $Id: jquery.treeview.js 4684 2008-02-07 19:08:06Z joern.zaefferer $
*
*/;(function($){$.extend($.fn,{swapClass:function(c1,c2){var c1Elements=this.filter('.'+c1);this.filter('.'+c2).removeClass(c2).addClass(c1);c1Elements.removeClass(c1).addClass(c2);return this;},replaceClass:function(c1,c2){return this.filter('.'+c1).removeClass(c1).addClass(c2).end();},hoverClass:function(className){className=className||"hover";return this.hover(function(){$(this).addClass(className);},function(){$(this).removeClass(className);});},heightToggle:function(animated,callback){animated?this.animate({height:"toggle"},animated,callback):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]();if(callback)callback.apply(this,arguments);});},heightHide:function(animated,callback){if(animated){this.animate({height:"hide"},animated,callback);}else{this.hide();if(callback)this.each(callback);}},prepareBranches:function(settings){if(!settings.prerendered){this.filter(":last-child:not(ul)").addClass(CLASSES.last);this.filter((settings.collapsed?"":"."+CLASSES.closed)+":not(."+CLASSES.open+")").find(">ul").hide();}return this.filter(":has(>ul)");},applyClasses:function(settings,toggler){this.filter(":has(>ul):not(:has(>a))").find(">span").click(function(event){toggler.apply($(this).next());}).add($("a",this)).hoverClass();if(!settings.prerendered){this.filter(":has(>ul:hidden)").addClass(CLASSES.expandable).replaceClass(CLASSES.last,CLASSES.lastExpandable);this.not(":has(>ul:hidden)").addClass(CLASSES.collapsable).replaceClass(CLASSES.last,CLASSES.lastCollapsable);this.prepend("<div class=\""+CLASSES.hitarea+"\"/>").find("div."+CLASSES.hitarea).each(function(){var classes="";$.each($(this).parent().attr("class").split(" "),function(){classes+=this+"-hitarea ";});$(this).addClass(classes);});}this.find("div."+CLASSES.hitarea).click(toggler);},treeview:function(settings){settings=$.extend({cookieId:"treeview"},settings);if(settings.add){return this.trigger("add",[settings.add]);}if(settings.toggle){var callback=settings.toggle;settings.toggle=function(){return callback.apply($(this).parent()[0],arguments);};}function treeController(tree,control){function handler(filter){return function(){toggler.apply($("div."+CLASSES.hitarea,tree).filter(function(){return filter?$(this).parent("."+filter).length:true;}));return false;};}$("a:eq(0)",control).click(handler(CLASSES.collapsable));$("a:eq(1)",control).click(handler(CLASSES.expandable));$("a:eq(2)",control).click(handler());}function toggler(){$(this).parent().find(">.hitarea").swapClass(CLASSES.collapsableHitarea,CLASSES.expandableHitarea).swapClass(CLASSES.lastCollapsableHitarea,CLASSES.lastExpandableHitarea).end().swapClass(CLASSES.collapsable,CLASSES.expandable).swapClass(CLASSES.lastCollapsable,CLASSES.lastExpandable).find(">ul").heightToggle(settings.animated,settings.toggle);if(settings.unique){$(this).parent().siblings().find(">.hitarea").replaceClass(CLASSES.collapsableHitarea,CLASSES.expandableHitarea).replaceClass(CLASSES.lastCollapsableHitarea,CLASSES.lastExpandableHitarea).end().replaceClass(CLASSES.collapsable,CLASSES.expandable).replaceClass(CLASSES.lastCollapsable,CLASSES.lastExpandable).find(">ul").heightHide(settings.animated,settings.toggle);}}function serialize(){function binary(arg){return arg?1:0;}var data=[];branches.each(function(i,e){data[i]=$(e).is(":has(>ul:visible)")?1:0;});$.cookie(settings.cookieId,data.join(""));}function deserialize(){var stored=$.cookie(settings.cookieId);if(stored){var data=stored.split("");branches.each(function(i,e){$(e).find(">ul")[parseInt(data[i])?"show":"hide"]();});}}this.addClass("treeview");var branches=this.find("li").prepareBranches(settings);switch(settings.persist){case"cookie":var toggleCallback=settings.toggle;settings.toggle=function(){serialize();if(toggleCallback){toggleCallback.apply(this,arguments);}};deserialize();break;case"location":var current=this.find("a").filter(function(){return this.href.toLowerCase()==location.href.toLowerCase();});if(current.length){current.addClass("selected").parents("ul, li").add(current.next()).show();}break;}branches.applyClasses(settings,toggler);if(settings.control){treeController(this,settings.control);$(settings.control).show();}return this.bind("add",function(event,branches){$(branches).prev().removeClass(CLASSES.last).removeClass(CLASSES.lastCollapsable).removeClass(CLASSES.lastExpandable).find(">.hitarea").removeClass(CLASSES.lastCollapsableHitarea).removeClass(CLASSES.lastExpandableHitarea);$(branches).find("li").andSelf().prepareBranches(settings).applyClasses(settings,toggler);});}});var CLASSES=$.fn.treeview.classes={open:"open",closed:"closed",expandable:"expandable",expandableHitarea:"expandable-hitarea",lastExpandableHitarea:"lastExpandable-hitarea",collapsable:"collapsable",collapsableHitarea:"collapsable-hitarea",lastCollapsableHitarea:"lastCollapsable-hitarea",lastCollapsable:"lastCollapsable",lastExpandable:"lastExpandable",last:"last",hitarea:"hitarea"};$.fn.Treeview=$.fn.treeview;})(jQuery);

View File

@@ -0,0 +1,52 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*
* @version
* 2.0.320 (May 03 2009)
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* @license
* This file is part of SyntaxHighlighter.
*
* SyntaxHighlighter is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SyntaxHighlighter is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
*/
SyntaxHighlighter.brushes.JScript = function()
{
var keywords = 'break case catch continue ' +
'default delete do else false ' +
'for function if in instanceof ' +
'new null return super switch ' +
'this throw true try typeof var while with'
;
this.regexList = [
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
{ regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
];
this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
};
SyntaxHighlighter.brushes.JScript.prototype = new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.JScript.aliases = ['js', 'jscript', 'javascript'];

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,690 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<model>
<namespace fullname="plupload" name="plupload">
<namespace fullname="plupload.runtimes" name="runtimes">
<class extends="plupload.Runtime" fullname="plupload.runtimes.BrowserPlus" name="BrowserPlus" static="true" summary="Yahoo BrowserPlus implementation.">
<description>Yahoo BrowserPlus implementation. This runtime supports these features: dragdrop, jpgresize, pngresize.
</description>
<members>
<method name="init" static="true" summary="Initializes the browserplus runtime.">
<description>Initializes the browserplus runtime.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance that needs to be initialized.</description>
</param>
<param name="callback" type="function">
<description>Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</description>
</param>
</method>
</members>
<super-classes>
<class-ref class="plupload.Runtime"/>
</super-classes>
</class>
<class extends="plupload.Runtime" fullname="plupload.runtimes.Flash" name="Flash" static="true" summary="FlashRuntime implementation.">
<description>FlashRuntime implementation. This runtime supports these features: jpgresize, pngresize, chunks.
</description>
<members>
<method name="init" static="true" summary="Initializes the upload runtime.">
<description>Initializes the upload runtime. This method should add necessary items to the DOM and register events needed for operation.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance that needs to be initialized.</description>
</param>
<param name="callback" type="function">
<description>Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</description>
</param>
</method>
</members>
<super-classes>
<class-ref class="plupload.Runtime"/>
</super-classes>
</class>
<class extends="plupload.Runtime" fullname="plupload.runtimes.Gears" name="Gears" static="true" summary="Gears implementation.">
<description>Gears implementation. This runtime supports these features: dragdrop, jpgresize, pngresize, chunks.
</description>
<members>
<method name="init" static="true" summary="Initializes the upload runtime.">
<description>Initializes the upload runtime.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance that needs to be initialized.</description>
</param>
<param name="callback" type="function">
<description>Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</description>
</param>
</method>
</members>
<super-classes>
<class-ref class="plupload.Runtime"/>
</super-classes>
</class>
<class extends="plupload.Runtime" fullname="plupload.runtimes.Html4" name="Html4" static="true" summary="HTML4 implementation.">
<description>HTML4 implementation. This runtime has no special features it uses an form that posts files into an hidden iframe.
</description>
<members>
<method name="init" static="true" summary="Initializes the upload runtime.">
<description>Initializes the upload runtime.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance that needs to be initialized.</description>
</param>
<param name="callback" type="function">
<description>Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</description>
</param>
</method>
</members>
<super-classes>
<class-ref class="plupload.Runtime"/>
</super-classes>
</class>
<class extends="plupload.Runtime" fullname="plupload.runtimes.Html5" name="Html5" static="true" summary="HMTL5 implementation.">
<description>HMTL5 implementation. This runtime supports these features: dragdrop, jpgresize, pngresize.
</description>
<members>
<method name="init" static="true" summary="Initializes the upload runtime.">
<description>Initializes the upload runtime.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance that needs to be initialized.</description>
</param>
<param name="callback" type="function">
<description>Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</description>
</param>
</method>
</members>
<super-classes>
<class-ref class="plupload.Runtime"/>
</super-classes>
</class>
<class extends="plupload.Runtime" fullname="plupload.runtimes.Silverlight" name="Silverlight" static="true" summary="Silverlight implementation.">
<description>Silverlight implementation. This runtime supports these features: jpgresize, pngresize, chunks.
</description>
<members>
<method name="init" static="true" summary="Initializes the upload runtime.">
<description>Initializes the upload runtime. This runtime supports these features: jpgresize, pngresize, chunks.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance that needs to be initialized.</description>
</param>
<param name="callback" type="function">
<description>Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</description>
</param>
</method>
</members>
<super-classes>
<class-ref class="plupload.Runtime"/>
</super-classes>
</class>
</namespace>
<class fullname="plupload.Uploader" name="Uploader" summary="Uploader class, an instance of this class will be created for each upload field.">
<description>Uploader class, an instance of this class will be created for each upload field.
</description>
<example>
<example>var uploader = new plupload.Uploader({
runtimes : 'gears,html5,flash',
browse_button : 'button_id'
});
uploader.bind('Init', function(up) {
alert('Supports drag/drop: ' + (!!up.features.dragdrop));
});
uploader.bind('FilesAdded', function(up, files) {
alert('Selected files: ' + files.length);
});
uploader.bind('QueueChanged', function(up) {
alert('Queued files: ' + uploader.files.length);
});
uploader.init();</example>
</example>
<members>
<method constructor="true" name="Uploader" summary="Constructs a new uploader instance.">
<description>Constructs a new uploader instance.
</description>
<param name="settings" type="Object">
<description>Initialization settings, to be used by the uploader instance and runtimes.</description>
</param>
</method>
<property name="state" summary="Current state of the total uploading progress." type="Number">
<description>Current state of the total uploading progress. This one can either be plupload.STARTED or plupload.STOPPED.
These states are controlled by the stop/start methods. The default value is STOPPED.
</description>
</property>
<property name="runtime" summary="Current runtime name." type="String">
<description>Current runtime name.
</description>
</property>
<property name="features" summary="Map of features that are available for the uploader runtime." type="Object">
<description>Map of features that are available for the uploader runtime. Features will be filled
before the init event is called, these features can then be used to alter the UI for the end user.
Some of the current features that might be in this map is: dragdrop, chunks, jpgresize, pngresize.
</description>
</property>
<property name="files" summary="Current upload queue, an array of File instances." type="Array">
<description>Current upload queue, an array of File instances.
</description>
<see class="plupload.File"/>
</property>
<property name="settings" summary="Object with name/value settings." type="Object">
<description>Object with name/value settings.
</description>
</property>
<property name="total" summary="Total progess information." type="plupload.QueueProgress">
<description>Total progess information. How many files has been uploaded, total percent etc.
</description>
</property>
<property name="id" summary="Unique id for the Uploader instance." type="String">
<description>Unique id for the Uploader instance.
</description>
</property>
<method name="init" summary="Initializes the Uploader instance and adds internal event listeners.">
<description>Initializes the Uploader instance and adds internal event listeners.
</description>
</method>
<method name="refresh" summary="Refreshes the upload instance by dispatching out a refresh event to all runtimes.">
<description>Refreshes the upload instance by dispatching out a refresh event to all runtimes.
This would for example reposition flash/silverlight shims on the page.
</description>
</method>
<method name="start" summary="Starts uploading the queued files.">
<description>Starts uploading the queued files.
</description>
</method>
<method name="stop" summary="Stops the upload of the queued files.">
<description>Stops the upload of the queued files.
</description>
</method>
<method name="getFile" summary="Returns the specified file object by id.">
<description>Returns the specified file object by id.
</description>
<param name="id" type="String">
<description>File id to look for.</description>
</param>
<return type="plupload.File">
<description>File object or undefined if it wasn't found;</description>
</return>
</method>
<method name="removeFile" summary="Removes a specific file.">
<description>Removes a specific file.
</description>
<param name="file" type="plupload.File">
<description>File to remove from queue.</description>
</param>
</method>
<method name="splice" summary="Removes part of the queue and returns the files removed.">
<description>Removes part of the queue and returns the files removed. This will also trigger the FilesRemoved and QueueChanged events.
</description>
<param name="start" type="Number">
<description>(Optional) Start index to remove from.</description>
</param>
<param name="length" type="Number">
<description>(Optional) Lengh of items to remove.</description>
</param>
<return type="Array">
<description>Array of files that was removed.</description>
</return>
</method>
<method name="trigger" summary="Dispatches the specified event name and it's arguments to all listeners.">
<description>Dispatches the specified event name and it's arguments to all listeners.
</description>
<param name="name" type="String">
<description>Event name to fire.</description>
</param>
<param name="Multiple" type="Object..">
<description>arguments to pass along to the listener functions.</description>
</param>
</method>
<method name="bind" summary="Adds an event listener by name.">
<description>Adds an event listener by name.
</description>
<param name="name" type="String">
<description>Event name to listen for.</description>
</param>
<param name="func" type="function">
<description>Function to call ones the event gets fired.</description>
</param>
<param name="scope" type="Object">
<description>Optional scope to execute the specified function in.</description>
</param>
</method>
<method name="unbind" summary="Removes the specified event listener.">
<description>Removes the specified event listener.
</description>
<param name="name" type="String">
<description>Name of event to remove.</description>
</param>
<param name="func" type="function">
<description>Function to remove from listener.</description>
</param>
</method>
<method name="unbindAll" summary="Removes all event listeners.">
<description>Removes all event listeners.
</description>
</method>
<method name="destroy" summary="Destroys Plupload instance and cleans after itself.">
<description>Destroys Plupload instance and cleans after itself.
</description>
</method>
<event name="Init" summary="Fires when the current RunTime has been initialized.">
<description>Fires when the current RunTime has been initialized.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance sending the event.</description>
</param>
</event>
<event name="PostInit" summary="Fires after the init event incase you need to perform actions there.">
<description>Fires after the init event incase you need to perform actions there.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance sending the event.</description>
</param>
</event>
<event name="Refresh" summary="Fires when the silverlight/flash or other shim needs to move.">
<description>Fires when the silverlight/flash or other shim needs to move.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance sending the event.</description>
</param>
</event>
<event name="StateChanged" summary="Fires when the overall state is being changed for the upload queue.">
<description>Fires when the overall state is being changed for the upload queue.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance sending the event.</description>
</param>
</event>
<event name="UploadFile" summary="Fires when a file is to be uploaded by the runtime.">
<description>Fires when a file is to be uploaded by the runtime.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance sending the event.</description>
</param>
<param name="file" type="plupload.File">
<description>File to be uploaded.</description>
</param>
</event>
<event name="BeforeUpload" summary="Fires when just before a file is uploaded.">
<description>Fires when just before a file is uploaded. This event enables you to override settings
on the uploader instance before the file is uploaded.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance sending the event.</description>
</param>
<param name="file" type="plupload.File">
<description>File to be uploaded.</description>
</param>
</event>
<event name="QueueChanged" summary="Fires when the file queue is changed.">
<description>Fires when the file queue is changed. In other words when files are added/removed to the files array of the uploader instance.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance sending the event.</description>
</param>
</event>
<event name="UploadProgress" summary="Fires while a file is being uploaded.">
<description>Fires while a file is being uploaded. Use this event to update the current file upload progress.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance sending the event.</description>
</param>
<param name="file" type="plupload.File">
<description>File that is currently being uploaded.</description>
</param>
</event>
<event name="FilesRemoved" summary="Fires while a file was removed from queue.">
<description>Fires while a file was removed from queue.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance sending the event.</description>
</param>
<param name="files" type="Array">
<description>Array of files that got removed.</description>
</param>
</event>
<event name="FilesAdded" summary="Fires while when the user selects files to upload.">
<description>Fires while when the user selects files to upload.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance sending the event.</description>
</param>
<param name="files" type="Array">
<description>Array of file objects that was added to queue/selected by the user.</description>
</param>
</event>
<event name="FileUploaded" summary="Fires when a file is successfully uploaded.">
<description>Fires when a file is successfully uploaded.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance sending the event.</description>
</param>
<param name="file" type="plupload.File">
<description>File that was uploaded.</description>
</param>
<param name="response" type="Object">
<description>Object with response properties.</description>
</param>
</event>
<event name="ChunkUploaded" summary="Fires when file chunk is uploaded.">
<description>Fires when file chunk is uploaded.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance sending the event.</description>
</param>
<param name="file" type="plupload.File">
<description>File that the chunk was uploaded for.</description>
</param>
<param name="response" type="Object">
<description>Object with response properties.</description>
</param>
</event>
<event name="UploadComplete" summary="Fires when all files in a queue are uploaded.">
<description>Fires when all files in a queue are uploaded.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance sending the event.</description>
</param>
<param name="files" type="Array">
<description>Array of file objects that was added to queue/selected by the user.</description>
</param>
</event>
<event name="Error" summary="Fires when a error occurs.">
<description>Fires when a error occurs.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance sending the event.</description>
</param>
<param name="error" type="Object">
<description>Contains code, message and sometimes file and other details.</description>
</param>
</event>
<event name="Destroy" summary="Fires when destroy method is called.">
<description>Fires when destroy method is called.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance sending the event.</description>
</param>
</event>
</members>
</class>
<class fullname="plupload.File" name="File" summary="File instance.">
<description>File instance.
</description>
<param name="name" type="String">
<description>Name of the file.</description>
</param>
<param name="size" type="Number">
<description>File size.</description>
</param>
<members>
<method constructor="true" name="File" summary="Constructs a new file instance.">
<description>Constructs a new file instance.
</description>
<param name="id" type="String">
<description>Unique file id.</description>
</param>
<param name="name" type="String">
<description>File name.</description>
</param>
<param name="size" type="Number">
<description>File size in bytes.</description>
</param>
</method>
<property name="id" summary="File id this is a globally unique id for the specific file." type="String">
<description>File id this is a globally unique id for the specific file.
</description>
</property>
<property name="name" summary="File name for example &quot;myfile." type="String">
<description>File name for example "myfile.gif".
</description>
</property>
<property name="size" summary="File size in bytes." type="Number">
<description>File size in bytes.
</description>
</property>
<property name="loaded" summary="Number of bytes uploaded of the files total size." type="Number">
<description>Number of bytes uploaded of the files total size.
</description>
</property>
<property name="percent" summary="Number of percentage uploaded of the file." type="Number">
<description>Number of percentage uploaded of the file.
</description>
</property>
<property name="status" summary="Status constant matching the plupload states QUEUED, UPLOADING, FAILED, DONE." type="Number">
<description>Status constant matching the plupload states QUEUED, UPLOADING, FAILED, DONE.
</description>
<see class="plupload"/>
</property>
</members>
</class>
<class fullname="plupload.Runtime" name="Runtime" static="true" summary="Runtime class gets implemented by each upload runtime.">
<description>Runtime class gets implemented by each upload runtime.
</description>
<members>
<method name="init" static="true" summary="Initializes the upload runtime.">
<description>Initializes the upload runtime. This method should add necessary items to the DOM and register events needed for operation.
</description>
<param name="uploader" type="plupload.Uploader">
<description>Uploader instance that needs to be initialized.</description>
</param>
<param name="callback" type="function">
<description>Callback function to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</description>
</param>
</method>
</members>
</class>
<class fullname="plupload.QueueProgress" name="QueueProgress" summary="Runtime class gets implemented by each upload runtime.">
<description>Runtime class gets implemented by each upload runtime.
</description>
<members>
<method constructor="true" name="QueueProgress" summary="Constructs a queue progress.">
<description>Constructs a queue progress.
</description>
</method>
<property name="size" summary="Total queue file size." type="Number">
<description>Total queue file size.
</description>
</property>
<property name="loaded" summary="Total bytes uploaded." type="Number">
<description>Total bytes uploaded.
</description>
</property>
<property name="uploaded" summary="Number of files uploaded." type="Number">
<description>Number of files uploaded.
</description>
</property>
<property name="failed" summary="Number of files failed to upload." type="Number">
<description>Number of files failed to upload.
</description>
</property>
<property name="queued" summary="Number of files yet to be uploaded." type="Number">
<description>Number of files yet to be uploaded.
</description>
</property>
<property name="percent" summary="Total percent of the uploaded bytes." type="Number">
<description>Total percent of the uploaded bytes.
</description>
</property>
<property name="bytesPerSec" summary="Bytes uploaded per second." type="Number">
<description>Bytes uploaded per second.
</description>
</property>
<method name="reset" summary="Resets the progress to it's initial values.">
<description>Resets the progress to it's initial values.
</description>
</method>
</members>
</class>
</namespace>
<class fullname="plupload" name="plupload" static="true" summary="Plupload class with some global constants and functions.">
<description>Plupload class with some global constants and functions.
</description>
<example>
<example>// Encode entities
console.log(plupload.xmlEncode("My string &amp;lt;&amp;gt;"));
// Generate unique id
console.log(plupload.guid());</example>
</example>
<members>
<property final="true" name="STOPPED" static="true" summary="Inital state of the queue and also the state ones it's finished all it's uploads." type="Object">
<description>Inital state of the queue and also the state ones it's finished all it's uploads.
</description>
</property>
<property final="true" name="STARTED" static="true" summary="Upload process is running" type="Object">
<description>Upload process is running
</description>
</property>
<property final="true" name="QUEUED" static="true" summary="File is queued for upload" type="Object">
<description>File is queued for upload
</description>
</property>
<property final="true" name="UPLOADING" static="true" summary="File is being uploaded" type="Object">
<description>File is being uploaded
</description>
</property>
<property final="true" name="FAILED" static="true" summary="File has failed to be uploaded" type="Object">
<description>File has failed to be uploaded
</description>
</property>
<property final="true" name="DONE" static="true" summary="File has been uploaded successfully" type="Object">
<description>File has been uploaded successfully
</description>
</property>
<property final="true" name="GENERIC_ERROR" static="true" summary="Generic error for example if an exception is thrown inside Silverlight." type="Object">
<description>Generic error for example if an exception is thrown inside Silverlight.
</description>
</property>
<property final="true" name="HTTP_ERROR" static="true" summary="HTTP transport error." type="Object">
<description>HTTP transport error. For example if the server produces a HTTP status other than 200.
</description>
</property>
<property final="true" name="IO_ERROR" static="true" summary="Generic I/O error." type="Object">
<description>Generic I/O error. For exampe if it wasn't possible to open the file stream on local machine.
</description>
</property>
<property final="true" name="SECURITY_ERROR" static="true" summary="Generic I/O error." type="Object">
<description>Generic I/O error. For exampe if it wasn't possible to open the file stream on local machine.
</description>
</property>
<property final="true" name="INIT_ERROR" static="true" summary="Initialization error." type="Object">
<description>Initialization error. Will be triggered if no runtime was initialized.
</description>
</property>
<property final="true" name="FILE_SIZE_ERROR" static="true" summary="File size error." type="Object">
<description>File size error. If the user selects a file that is to large it will be blocked and an error of this type will be triggered.
</description>
</property>
<property final="true" name="FILE_EXTENSION_ERROR" static="true" summary="File extension error." type="Object">
<description>File extension error. If the user selects a file that isn't valid according to the filters setting.
</description>
</property>
<property final="true" name="mimeTypes" static="true" summary="Mime type lookup table." type="Object">
<description>Mime type lookup table.
</description>
</property>
<method name="extend" static="true" summary="Extends the specified object with another object.">
<description>Extends the specified object with another object.
</description>
<param name="target" type="Object">
<description>Object to extend.</description>
</param>
<param name="obj" type="Object..">
<description>Multiple objects to extend with.</description>
</param>
<return type="Object">
<description>Same as target, the extended object.</description>
</return>
</method>
<method name="cleanName" static="true" summary="Cleans the specified name from national characters (diacritics).">
<description>Cleans the specified name from national characters (diacritics). The result will be a name with only a-z, 0-9 and _.
</description>
<param name="s" type="String">
<description>String to clean up.</description>
</param>
<return type="String">
<description>Cleaned string.</description>
</return>
</method>
<method name="addRuntime" static="true" summary="Adds a specific upload runtime like for example flash or gears.">
<description>Adds a specific upload runtime like for example flash or gears.
</description>
<param name="name" type="String">
<description>Runtime name for example flash.</description>
</param>
<param name="obj" type="Object">
<description>Object containing init/destroy method.</description>
</param>
</method>
<method name="guid" static="true" summary="Generates an unique ID.">
<description>Generates an unique ID. This is 99.99% unique since it takes the current time and 5 random numbers.
The only way a user would be able to get the same ID is if the two persons at the same exact milisecond manages
to get 5 the same random numbers between 0-65535 it also uses a counter so each call will be guaranteed to be page unique.
It's more probable for the earth to be hit with an ansteriod. You can also if you want to be 100% sure set the plupload.guidPrefix property
to an user unique key.
</description>
<return type="String">
<description>Virtually unique id.</description>
</return>
</method>
<method name="formatSize" static="true" summary="Formats the specified number as a size string for example 1024 becomes 1 KB.">
<description>Formats the specified number as a size string for example 1024 becomes 1 KB.
</description>
<param name="size" type="Number">
<description>Size to format as string.</description>
</param>
<return type="String">
<description>Formatted size string.</description>
</return>
</method>
<method name="getPos" static="true" summary="Returns the absolute x, y position of an Element.">
<description>Returns the absolute x, y position of an Element. The position will be returned in a object with x, y fields.
</description>
<param name="node" type="Element">
<description>HTML element or element id to get x, y position from.</description>
</param>
<param name="root" type="Element">
<description>Optional root element to stop calculations at.</description>
</param>
<return type="object">
<description>Absolute position of the specified element object with x, y fields.</description>
</return>
</method>
<method name="parseSize" static="true" summary="Parses the specified size string into a byte value.">
<description>Parses the specified size string into a byte value. For example 10kb becomes 10240.
</description>
<param name="size">
<type fullname="String"/>
<type fullname="Number"/>
<description>String to parse or number to just pass through.</description>
</param>
<return type="Number">
<description>Size in bytes.</description>
</return>
</method>
<method name="xmlEncode" static="true" summary="Encodes the specified string.">
<description>Encodes the specified string.
</description>
<param name="s" type="String">
<description>String to encode.</description>
</param>
<return type="String">
<description>Encoded string.</description>
</return>
</method>
<method name="toArray" static="true" summary="Forces anything into an array.">
<description>Forces anything into an array.
</description>
<param name="obj" type="Object">
<description>Object with length field.</description>
</param>
<return type="Array">
<description>Array object containing all items.</description>
</return>
</method>
</members>
</class>
</model>

View File

@@ -0,0 +1,246 @@
// Namespaces
plupload = {}
plupload.runtimes = {}
// Classes
plupload.runtimes.BrowserPlus = function() {
/// <summary>Yahoo BrowserPlus implementation.</summary>
}
plupload.runtimes.BrowserPlus.init = function(uploader, callback) {
/// <summary>Initializes the browserplus runtime.</summary>
/// <param name="uploader" type="plupload.Uploader">Uploader instance that needs to be initialized.</param>
/// <param name="callback" type="function">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</param>
}
plupload.runtimes.Flash = function() {
/// <summary>FlashRuntime implementation.</summary>
}
plupload.runtimes.Flash.init = function(uploader, callback) {
/// <summary>Initializes the upload runtime.</summary>
/// <param name="uploader" type="plupload.Uploader">Uploader instance that needs to be initialized.</param>
/// <param name="callback" type="function">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</param>
}
plupload.runtimes.Gears = function() {
/// <summary>Gears implementation.</summary>
}
plupload.runtimes.Gears.init = function(uploader, callback) {
/// <summary>Initializes the upload runtime.</summary>
/// <param name="uploader" type="plupload.Uploader">Uploader instance that needs to be initialized.</param>
/// <param name="callback" type="function">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</param>
}
plupload.runtimes.Html4 = function() {
/// <summary>HTML4 implementation.</summary>
}
plupload.runtimes.Html4.init = function(uploader, callback) {
/// <summary>Initializes the upload runtime.</summary>
/// <param name="uploader" type="plupload.Uploader">Uploader instance that needs to be initialized.</param>
/// <param name="callback" type="function">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</param>
}
plupload.runtimes.Html5 = function() {
/// <summary>HMTL5 implementation.</summary>
}
plupload.runtimes.Html5.init = function(uploader, callback) {
/// <summary>Initializes the upload runtime.</summary>
/// <param name="uploader" type="plupload.Uploader">Uploader instance that needs to be initialized.</param>
/// <param name="callback" type="function">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</param>
}
plupload.runtimes.Silverlight = function() {
/// <summary>Silverlight implementation.</summary>
}
plupload.runtimes.Silverlight.init = function(uploader, callback) {
/// <summary>Initializes the upload runtime.</summary>
/// <param name="uploader" type="plupload.Uploader">Uploader instance that needs to be initialized.</param>
/// <param name="callback" type="function">Callback to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</param>
}
plupload.Uploader = function(settings) {
/// <summary>Uploader class, an instance of this class will be created for each upload field.</summary>
/// <param name="settings" type="Object">Initialization settings, to be used by the uploader instance and runtimes.</param>
/// <field name="state" type="Number">Current state of the total uploading progress. This one can either be plupload.STARTED or plupload.STOPPED. These states are controlled by the stop/start methods. The default value is STOPPED.</field>
/// <field name="runtime" type="String">Current runtime name.</field>
/// <field name="features" type="Object">Map of features that are available for the uploader runtime. Features will be filled before the init event is called, these features can then be used to alter the UI for the end user. Some of the current features that might be in this map is: dragdrop, chunks, jpgresize, pngresize.</field>
/// <field name="files" type="Array">Current upload queue, an array of File instances.</field>
/// <field name="settings" type="Object">Object with name/value settings.</field>
/// <field name="total" type="plupload.QueueProgress">Total progess information. How many files has been uploaded, total percent etc.</field>
/// <field name="id" type="String">Unique id for the Uploader instance.</field>
}
plupload.Uploader.prototype.init = function() {
/// <summary>Initializes the Uploader instance and adds internal event listeners.</summary>
}
plupload.Uploader.prototype.refresh = function() {
/// <summary>Refreshes the upload instance by dispatching out a refresh event to all runtimes.</summary>
}
plupload.Uploader.prototype.start = function() {
/// <summary>Starts uploading the queued files.</summary>
}
plupload.Uploader.prototype.stop = function() {
/// <summary>Stops the upload of the queued files.</summary>
}
plupload.Uploader.prototype.getFile = function(id) {
/// <summary>Returns the specified file object by id.</summary>
/// <param name="id" type="String">File id to look for.</param>
/// <returns type="plupload.File">File object or undefined if it wasn't found;</returns>
}
plupload.Uploader.prototype.removeFile = function(file) {
/// <summary>Removes a specific file.</summary>
/// <param name="file" type="plupload.File">File to remove from queue.</param>
}
plupload.Uploader.prototype.splice = function(start, length) {
/// <summary>Removes part of the queue and returns the files removed.</summary>
/// <param name="start" type="Number" integer="true">(Optional) Start index to remove from.</param>
/// <param name="length" type="Number" integer="true">(Optional) Lengh of items to remove.</param>
/// <returns type="Array">Array of files that was removed.</returns>
}
plupload.Uploader.prototype.trigger = function(name, Multiple) {
/// <summary>Dispatches the specified event name and it's arguments to all listeners.</summary>
/// <param name="name" type="String">Event name to fire.</param>
/// <param name="Multiple" type="Object..">arguments to pass along to the listener functions.</param>
}
plupload.Uploader.prototype.bind = function(name, func, scope) {
/// <summary>Adds an event listener by name.</summary>
/// <param name="name" type="String">Event name to listen for.</param>
/// <param name="func" type="function">Function to call ones the event gets fired.</param>
/// <param name="scope" type="Object">Optional scope to execute the specified function in.</param>
}
plupload.Uploader.prototype.unbind = function(name, func) {
/// <summary>Removes the specified event listener.</summary>
/// <param name="name" type="String">Name of event to remove.</param>
/// <param name="func" type="function">Function to remove from listener.</param>
}
plupload.Uploader.prototype.unbindAll = function() {
/// <summary>Removes all event listeners.</summary>
}
plupload.Uploader.prototype.destroy = function() {
/// <summary>Destroys Plupload instance and cleans after itself.</summary>
}
plupload.File = function(id, name, size) {
/// <summary>File instance.</summary>
/// <param name="id" type="String">Unique file id.</param>
/// <param name="name" type="String">File name.</param>
/// <param name="size" type="Number" integer="true">File size in bytes.</param>
/// <field name="id" type="String">File id this is a globally unique id for the specific file.</field>
/// <field name="name" type="String">File name for example "myfile.gif".</field>
/// <field name="size" type="Number">File size in bytes.</field>
/// <field name="loaded" type="Number">Number of bytes uploaded of the files total size.</field>
/// <field name="percent" type="Number">Number of percentage uploaded of the file.</field>
/// <field name="status" type="Number">Status constant matching the plupload states QUEUED, UPLOADING, FAILED, DONE.</field>
}
plupload.Runtime = function() {
/// <summary>Runtime class gets implemented by each upload runtime.</summary>
}
plupload.Runtime.init = function(uploader, callback) {
/// <summary>Initializes the upload runtime.</summary>
/// <param name="uploader" type="plupload.Uploader">Uploader instance that needs to be initialized.</param>
/// <param name="callback" type="function">Callback function to execute when the runtime initializes or fails to initialize. If it succeeds an object with a parameter name success will be set to true.</param>
}
plupload.QueueProgress = function() {
/// <summary>Runtime class gets implemented by each upload runtime.</summary>
/// <field name="size" type="Number">Total queue file size.</field>
/// <field name="loaded" type="Number">Total bytes uploaded.</field>
/// <field name="uploaded" type="Number">Number of files uploaded.</field>
/// <field name="failed" type="Number">Number of files failed to upload.</field>
/// <field name="queued" type="Number">Number of files yet to be uploaded.</field>
/// <field name="percent" type="Number">Total percent of the uploaded bytes.</field>
/// <field name="bytesPerSec" type="Number">Bytes uploaded per second.</field>
}
plupload.QueueProgress.prototype.reset = function() {
/// <summary>Resets the progress to it's initial values.</summary>
}
// Namespaces
plupload.STOPPED = new Object();
plupload.STARTED = new Object();
plupload.QUEUED = new Object();
plupload.UPLOADING = new Object();
plupload.FAILED = new Object();
plupload.DONE = new Object();
plupload.GENERIC_ERROR = new Object();
plupload.HTTP_ERROR = new Object();
plupload.IO_ERROR = new Object();
plupload.SECURITY_ERROR = new Object();
plupload.INIT_ERROR = new Object();
plupload.FILE_SIZE_ERROR = new Object();
plupload.FILE_EXTENSION_ERROR = new Object();
plupload.mimeTypes = new Object();
plupload.extend = function(target, obj) {
/// <summary>Extends the specified object with another object.</summary>
/// <param name="target" type="Object">Object to extend.</param>
/// <param name="obj" type="Object..">Multiple objects to extend with.</param>
/// <returns type="Object">Same as target, the extended object.</returns>
}
plupload.cleanName = function(s) {
/// <summary>Cleans the specified name from national characters (diacritics).</summary>
/// <param name="s" type="String">String to clean up.</param>
/// <returns type="String">Cleaned string.</returns>
}
plupload.addRuntime = function(name, obj) {
/// <summary>Adds a specific upload runtime like for example flash or gears.</summary>
/// <param name="name" type="String">Runtime name for example flash.</param>
/// <param name="obj" type="Object">Object containing init/destroy method.</param>
}
plupload.guid = function() {
/// <summary>Generates an unique ID.</summary>
/// <returns type="String">Virtually unique id.</returns>
}
plupload.formatSize = function(size) {
/// <summary>Formats the specified number as a size string for example 1024 becomes 1 KB.</summary>
/// <param name="size" type="Number" integer="true">Size to format as string.</param>
/// <returns type="String">Formatted size string.</returns>
}
plupload.getPos = function(node, root) {
/// <summary>Returns the absolute x, y position of an Element.</summary>
/// <param name="node" type="Element" domElement="true">HTML element or element id to get x, y position from.</param>
/// <param name="root" type="Element" domElement="true">Optional root element to stop calculations at.</param>
/// <returns type="object">Absolute position of the specified element object with x, y fields.</returns>
}
plupload.parseSize = function(size) {
/// <summary>Parses the specified size string into a byte value.</summary>
/// <param name="size" type="">String to parse or number to just pass through.</param>
/// <returns type="Number" integer="true">Size in bytes.</returns>
}
plupload.xmlEncode = function(s) {
/// <summary>Encodes the specified string.</summary>
/// <param name="s" type="String">String to encode.</param>
/// <returns type="String">Encoded string.</returns>
}
plupload.toArray = function(obj) {
/// <summary>Forces anything into an array.</summary>
/// <param name="obj" type="Object">Object with length field.</param>
/// <returns type="Array">Array object containing all items.</returns>
}