public function logContext(common_profiler_Context $context) { $this->data['context'] = $context->toArray(); if (!empty($this->comment)) { $this->data['context']['comment'] = $this->comment; } }