function toLegacyJSON($v, $ns = '') { ARC2::inc('LegacyJSONSerializer'); if (!$ns) { $ns = isset($this->a['ns']) ? $this->a['ns'] : array(); } $ser = new ARC2_LegacyJSONSerializer(array_merge($this->a, array('ns' => $ns)), $this); return $ser->getSerializedArray($v); }
function toLegacyJSON($v, $ns = '') { ARC2::inc('LegacyJSONSerializer'); $conf = array('ns' => $ns ? $ns : isset($this->a['ns']) ? $this->a['ns'] : array()); $ser = new ARC2_LegacyJSONSerializer($conf, $this); return $ser->getSerializedArray($v); }