function &getStructure($type = 's') { $ret =& parent::getStructure($type); $uHandler =& xoops_gethandler('user'); $user = new exXoopsUserObject($uHandler->get($this->getVar('uid'))); $ret['user'] = $user->getArray($type); $ret['input_date_formatted'] = formatTimestamp($ret['input_date'], 'm'); $ret['input_date_utime'] = xoops_getUserTimestamp($ret['input_date']); $ret['modified_date_formatted'] = formatTimestamp($ret['modified_date'], 'm'); $ret['modified_date_utime'] = xoops_getUserTimestamp($ret['modified_date']); return $ret; }
function &getStructure($type = 's') { $ret =& parent::getStructure($type); $uHandler =& xoops_gethandler('user'); $user = new exXoopsUserObject($uHandler->get($this->getVar('uid'))); $ret['user'] = $user->getArray($type); $ret['status_str'] = $GLOBALS['plzxoo_status_mapping'][$this->getVar('status')]; $ret['input_date_formatted'] = formatTimestamp($ret['input_date'], 'm'); $ret['input_date_utime'] = xoops_getUserTimestamp($ret['input_date']); $ret['modified_date_formatted'] = formatTimestamp($ret['modified_date'], 'm'); $ret['modified_date_utime'] = xoops_getUserTimestamp($ret['modified_date']); // カテゴリ if ($ret['cid']) { $cHandler =& plzXoo::getHandler('category'); $category =& $cHandler->get($ret['cid']); $ret['category'] =& $category->getArray(); } return $ret; }