Example #1
0
 public function parse_list($response)
 {
     if ($response === "N;") {
         throw new Exception("Invalid data");
     }
     $result = array();
     foreach (unserialize($response) as $re) {
         $obj = new self();
         $obj->language($re["language"]);
         $obj->id($re["id"]);
         $obj->url($re["url"]);
         $obj->title($re["title"]);
         $obj->body($re["body"]);
         $obj->length($re["length"]);
         $obj->redirect($re["redirect"]);
         $obj->strict($re["strict"]);
         $obj->datetime($re["datetime"]);
         $result[] = $obj;
     }
     return $result;
 }