Config_Container::getAttributes

Config_Container::getAttributes() – アイテムの総ての属性を取得する

Synopsis

require_once 'Config/Container.php';

array Config_Container::getAttributes ( ( void )

Description

この関数は、このコンテナーの総ての属性を配列で返します。

Return value

array - アイテムの総ての属性を返します。

Note

This function can not be called statically.

Example

属性の使用法

<?php
$attributes 
= array('id' => 'db''language' => 'en');
     
$section =& new Config_Container('section''main'null$attributes);
     
$section->createDirective('authentication''test', array('type' => 'mysql',
     
'host' => 'localhost'));

     echo 
$section->toString('phparray');
     echo 
$section->toString('xml');
?>

総ての属性を'@'キーとPHP配列タイプで設定する


<?php
$main['@']['id'] = 'db';
$main['@']['language'] = 'en';
$main['authentication']['#'] = 'test';
$main['authentication']['@']['type'] = 'mysql';
$main['authentication']['@']['host'] = 'localhost';
?>

xmlタイプで通常の方法を用いて総ての属性をで設定する


       <?xml version="1.0" encoding="ISO-8859-1"?>
       <main id="db" language="en">
        <authentication type="mysql" host="localhost">
         test
        </authentication>;
       </main>
NPO法人の設立はお任せ下さい

NPO法人とはという基本的内容から実際のNPO法人設立まで広くお手伝いいたします。これからNPO法人をお考えの方はオススメ。NPO法人とはNon Profit Organizationの略であり、特定非営利活動法人を指します。法人なので当然に登記され、独立した人格として活動ができるようになります。

これから引越しや転勤等で賃貸物件を探すなら、賃貸大阪homeへ
アクセスカウンター
アルバイトをお探しならアルバイトスタイルへ。アルバイトを探したい方、アルバイトを探している方は必見です。
NPO法人をこれから設立したいとお考えなら自分で設立するNPO法人へ。都道府県ごとのNPO法人設立情報などを提供。NPO法人証明書も発行
株式会社をこれから設立したいとお考えなら会社設立webへ。都道府県ごとの会社設立専門家を紹介しております。
メールフォームを製作するならメールフォームbizへ。納品できるメールフォームを製作