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

  • Access: public

The error message (faultString) if an error occurs.


$client

  • Access: public

The XML-RPC client object.


$errno

  • Access: public

The error number (faultCode) if an error occurs.


$name

  • Access: public

Name of the attribute.


$value

  • Access: public

Value of the attribute.

Return to Top



Methods


XMLAttr ($name, $value)

  • Access: public

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

Copyright © 2008 Sitellite CMS Project

Powered by Sitellite 5.0 Content Management System