Method | Description | |
---|---|---|
__construct ( ) : void | Creates a new asynchronous task | |
__destruct ( ) : void | Finish create an asynchronous task | |
cancel ( ) : boolean | Attempts to cancel execution of this task | |
execute ( mixed $parameters ) : void | Executes the task with the specified parameters | |
getStatus ( ) : string | Returns the current status of this task | |
isCancelled ( ) : boolean | Returns true if this task was cancelled before it completed normally |
Method | Description | |
---|---|---|
doInBackground ( mixed $parameters ) : mixed | Override this method to perform a computation on a background thread | |
getProperty ( string $key ) : mixed | Returns the variable with the given key | |
onCancelled ( ) : void | Runs on the thread after cancel() | |
onPostExecute ( mixed $result ) : void | Runs on the thread after doInBackground($parameters) | |
onPreExecute ( ) : void | Runs on the thread before doInBackground($parameters) | |
setProperty ( string $key, string $value ) : boolean | Inserts or updates a variable with the given key |
Method | Description | |
---|---|---|
getUid ( string $key ) : integer | Returns a unique integer identifier for a given key |
final public __construct ( ) : void | ||
return | void |
final public __destruct ( ) : void | ||
return | void |
abstract protected doInBackground ( mixed $parameters ) : mixed | ||
$parameters | mixed | |
return | mixed |
final protected static getProperty ( string $key ) : mixed | ||
$key | string | |
return | mixed |
final public isCancelled ( ) : boolean | ||
return | boolean |
protected onCancelled ( ) : void | ||
return | void |
protected onPostExecute ( mixed $result ) : void | ||
$result | mixed | |
return | void |
protected onPreExecute ( ) : void | ||
return | void |