. * * @category Feed * @package StatusNet * @author Evan Prodromou * @author Zach Copley * @copyright 2010 StatusNet, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPLv3 * @link http://status.net/ */ if (!defined('STATUSNET')) { exit(1); } class PoCoAddress { const ADDRESS = 'address'; const FORMATTED = 'formatted'; public $formatted; // @todo Other address fields function asString() { if (!empty($this->formatted)) { $xs = new XMLStringer(true); $xs->elementStart('poco:address'); $xs->element('poco:formatted', null, common_xml_safe_str($this->formatted)); $xs->elementEnd('poco:address'); return $xs->getString(); } return null; } }