| Config_Container::getAttribute | Config_Container::getChild |
| Config | |
| PEAR Manual | |
require_once 'Config/Container.php';
|
array Config_Container::getAttributes (
( void
)
This method returns an array containing the attributes of this container.
array - item's attributes
This function can not be called statically.
Using attribute
|
Attributes are set for '@' key with php array type
<?php
$main['@']['id'] = 'db';
$main['@']['language'] = 'en';
$main['authentication']['#'] = 'test';
$main['authentication']['@']['type'] = 'mysql';
$main['authentication']['@']['host'] = 'localhost';
?>
|
Attributes are set the usual way with xml type
<?xml version="1.0" encoding="ISO-8859-1"?>
<main xml:id="db" language="en">
<authentication type="mysql" host="localhost">
test
</authentication>;
</main>
|
| Config_Container::getAttribute | Config_Container::getChild |
| Config | |
| PEAR Manual | |