Hi Guys,
I have some software in house which, when a called by my PHP script, I get a return similar to the below;
[0] => Array
(
[jobID] => 29
[name] => [split 2/17] stitch_iPhone: iPhone_Widescreen_HQ.setting + VideoFile.avi
[history] => Array
(
[0] => Array
(
[time] => 1284645057
[progress] => 0
[reason] => 0
[___class___] => Episode::API::Status
[state] => 0
)
[1] => Array
(
[time] => 1284645057
[progress] => 0
[reason] => 0
[___class___] => Episode::API::Status
[state] => 1
)
[2] => Array
(
[time] => 1284645057
[progress] => 100
[reason] => 0
[___class___] => Episode::API::Status
[state] => 2
)
[3] => Array
(
[time] => 1284645734
[progress] => 0
[reason] => 9
[___class___] => Episode::API::Status
[state] => 3
)
[4] => Array
(
[time] => 1284645734
[progress] => 0
[reason] => 9
[___class___] => Episode::API::Status
[state] => 4
)
)
[currentStatus] => Array
(
[time] => 1284645734
[progress] => 0
[reason] => 9
[___class___] => Episode::API::Status
[state] => 4
)
[metaData] => Array
(
[job-media] => /Users/Shared/Episode Engine/Input/stitch_iPhone/VideoFile.avi
[client-host] => localhost
[client-name] => Watcher
[job-setting] => iPhone_Widescreen_HQ.setting
[job-kind] => split
[job-folder] => stitch_iPhone
[job-name] => [split 2/17] stitch_iPhone: iPhone_Widescreen_HQ.setting + VideoFile.avi
[owner] => %watch
)
[___class___] => Episode::API::Job
)
So my question is, how do I take this data and display it an a readable format? I can live without having the "History" array, just the "current status" array would be good.
I can have about 100 of these returned for different "jobs" so I'm guessing that a foreach loop would be best?
Any help appreciated!
Dan