PHP 클래스 AsyncTask

저자: Dmitry Mamontov ([email protected])
파일 보기 프로젝트 열기: dmamontov/asynctask 1 사용 예제들

공개 메소드들

메소드 설명
__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

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
getUid ( string $key ) : integer Returns a unique integer identifier for a given key

메소드 상세

__construct() 최종 공개 메소드

Creates a new asynchronous task
final public __construct ( ) : void
리턴 void

__destruct() 최종 공개 메소드

Finish create an asynchronous task
final public __destruct ( ) : void
리턴 void

cancel() 최종 공개 메소드

Attempts to cancel execution of this task
final public cancel ( ) : boolean
리턴 boolean

doInBackground() 추상적인 보호된 메소드

Override this method to perform a computation on a background thread
abstract protected doInBackground ( mixed $parameters ) : mixed
$parameters mixed
리턴 mixed

execute() 최종 공개 메소드

Executes the task with the specified parameters
final public execute ( mixed $parameters ) : void
$parameters mixed
리턴 void

getProperty() 최종 보호된 정적인 메소드

Returns the variable with the given key
final protected static getProperty ( string $key ) : mixed
$key string
리턴 mixed

getStatus() 최종 공개 메소드

Returns the current status of this task
final public getStatus ( ) : string
리턴 string

isCancelled() 최종 공개 메소드

Returns true if this task was cancelled before it completed normally
final public isCancelled ( ) : boolean
리턴 boolean

onCancelled() 보호된 메소드

Runs on the thread after cancel()
protected onCancelled ( ) : void
리턴 void

onPostExecute() 보호된 메소드

Runs on the thread after doInBackground($parameters)
protected onPostExecute ( mixed $result ) : void
$result mixed
리턴 void

onPreExecute() 보호된 메소드

Runs on the thread before doInBackground($parameters)
protected onPreExecute ( ) : void
리턴 void

setProperty() 최종 보호된 정적인 메소드

Inserts or updates a variable with the given key
final protected static setProperty ( string $key, string $value ) : boolean
$key string
$value string
리턴 boolean