function toArray() { $ret = parent::toArray(); $ret['fromInfo'] = $this->getFromInfo(); $ret['toInfo'] = $this->getToInfo(); $ret['fullLink'] = $this->link(true); return $ret; }
function toArray($format = 's') { global $myts; if (!$myts) { $myts =& MyTextSanitizer::getInstance(); } $ret = parent::toArray(); if ($format == 'e') { $ret['partnerid'] = $this->getVar('partnerid', 'e'); } $ret['description'] = $myts->undoHtmlSpecialChars($ret['description']); return $ret; }