示例#1
0
 function toArray()
 {
     $ret = parent::toArray();
     $ret['fromInfo'] = $this->getFromInfo();
     $ret['toInfo'] = $this->getToInfo();
     $ret['fullLink'] = $this->link(true);
     return $ret;
 }
示例#2
0
 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;
 }