Class: XMLAttr
- Package: saf.XML
- Author: John Luxford <lux@simian.ca>
- Copyright: Copyright (C) 2001-2003, Simian Systems Inc.
- License: http://www.sitellite.org/index/license Simian Open Software License
- Version: 1.2, 2003-01-19, $Id: Attr.php,v 1.3 2007/10/06 00:06:30 lux Exp $
- Access: public
XMLAttr stores all the XML attributes of your document.
New in 1.2:
- Added a write() method.
Usage Example
<?php
$attr = new XMLAttr ('name', 'value');
?>
Return to Top
Properties
$doc
$error
The error message (faultString) if an error occurs.
$client
The XML-RPC client object.
$errno
The error number (faultCode) if an error occurs.
$name
Name of the attribute.
$value
Value of the attribute.
Return to Top
Methods
XMLAttr ($name, $value)
Constructor method.
write ($space = false)
- Access: public
- Return: string
Writes the attribute in XML format. $space determines
whether you want a preceeding space automatically inserted.
Return to Top