public function supplementData($data) { if (!empty($data) && is_array($data)) { while (list($key, $val) = each($data)) { if (in_array($key, $this->page_fields)) { $this->cur_prop[$key] = $val; } } parent::supplementData($data); } }