/** static */ function addStat($obj, $fileId, $type) { $data = sotf_Statistics::createLocalStatInfo($obj, $fileId, $type); if ($obj->isLocal()) { sotf_Statistics::recordStat($data); } else { // if remote program, send this by XML-RPC!! $obj->createForwardObject('stat', $data); } }