Definition at line 20 of file Class.TEClient.php.
__construct |
( |
|
$host = "localhost" , |
|
|
|
$port = 51968 |
|
) |
| |
initialize host and port
- Parameters
-
string | $host | host name |
int | $port | port number |
Definition at line 46 of file Class.TEClient.php.
eraseTransformation |
( |
|
$tid | ) |
|
erase transformation delete associated files in the server engine
- Parameters
-
string | $tid | Task identification |
string | $filename | the path where put the file (must be writeable) |
array | &$info | transformation task info return "tid"=> ,"status"=> ,"comment=> |
- Returns
- string error message, if no error empty string
Definition at line 362 of file Class.TEClient.php.
getAndLeaveTransformation |
( |
|
$tid, |
|
|
|
$filename |
|
) |
| |
send a request for retrieve a transformation the status must be D (Done) or K (Done but errors). all working files are stayed into the server : be carreful to clean it after (use ::eraseTransformation)
- Parameters
-
string | $tid | Task identification |
string | $filename | the path where put the file (must be writeable) |
- Returns
- string error message, if no error empty string
Definition at line 261 of file Class.TEClient.php.
getInfo |
( |
|
$tid, |
|
|
& |
$info |
|
) |
| |
send a request to get information about a task
- Parameters
-
int | $tid_task | identificator |
array | &$info | transformation task info return "tid"=> ,"status"=> ,"comment=> |
- Returns
- string error message, if no error empty string
Definition at line 179 of file Class.TEClient.php.
getTransformation |
( |
|
$tid, |
|
|
|
$filename |
|
) |
| |
send a request to retrieve a transformation and to erase task from server the status must be D (Done) or K (Done but errors).
- Parameters
-
string | $tid | Task identification |
string | $filename | the path where put the file (must be writeable) |
- Returns
- string error message, if no error empty string
Definition at line 247 of file Class.TEClient.php.
sendTransformation |
( |
|
$te_name, |
|
|
|
$fkey, |
|
|
|
$filename, |
|
|
|
$callback, |
|
|
& |
$info |
|
) |
| |
send a request to do a transformation
- Parameters
-
string | $te_name | Engine name |
string | $fkey | foreign key |
string | $filename | the path where is the original file |
string | $callback | url to activate after transformation is done |
array | &$info | transformation task info return "tid"=> ,"status"=> ,"comment=> |
- Returns
- string error message, if no error empty string
Definition at line 61 of file Class.TEClient.php.
const error_connect = - 2 |
const error_convert = - 1 |
const error_emptyfile = - 5 |
const error_noengine = - 3 |
const error_sendfile = - 4 |
const status_inprogress = 2 |
The documentation for this class was generated from the following file: