Commit 6738e084 authored by Leigh B Stoller's avatar Leigh B Stoller

Option to get the task data as PHP objects instead of arrays.

parent f17b5cb2
...@@ -155,6 +155,15 @@ class WebTask { ...@@ -155,6 +155,15 @@ class WebTask {
function exited() { return $this->field("exited"); } function exited() { return $this->field("exited"); }
function task_data() { return $this->field("task_data"); } function task_data() { return $this->field("task_data"); }
function TaskDataObject() {
if ($this->task_data()) {
return json_decode($this->task_data(), false);
}
else {
return new stdClass();
}
}
# #
# Return the task data as a real object intead of JSON # Return the task data as a real object intead of JSON
# #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment