function parseData() { parent::parseData(); $f = array($this->classname, '__set_state'); foreach ($this->data as $k => $v) { $this->data[$k] = call_user_func($f, $v); } }
function parseData() { parent::parseData(); foreach ($this->data as $k => $v) { $c = new GBComment($v); $c->post = $this->post; $this->data[$k] = $c; } }