pure.fw.brownie
[ class tree: pure.fw.brownie ] [ index: pure.fw.brownie ] [ all elements ]

Class: Brownie_Element_Root

Source Location: /package/pure/fw/brownie/BrownieElement.inc

Class Overview

PURE_Class
   |
   --Brownie_Node
      |
      --Brownie_Element
         |
         --Brownie_Element_Root

文書のルートを表すエレメントの実装です。


Implements interfaces:

Methods


Inherited Constants

Inherited Methods

Class: Brownie_Element

Brownie_Element::__construct()
標準のコンストラクタです。
Brownie_Element::addContain()
エレメントに保有するエレメントを追加します。
Brownie_Element::addText()
エレメントにテキストを追加します。
Brownie_Element::canCompact()
コンパクト整形可能か否かを判定して返します。
Brownie_Element::getContain()
エレメントか保有している指定のインデックスのエレメント、データを取得します。
Brownie_Element::getContainCount()
エレメントか保有しているエレメント、データの個数を取得します。
Brownie_Element::getDepth()
エレメントの深さレベルを取得します。
Brownie_Element::getInnerText()
エレメントに直接保持されているテキスト要素を全て取得し、Brownie_Textオブジェクトに格納して返します。
Brownie_Element::getParent()
親エレメントを取得します。
Brownie_Element::setDepth()
エレメントの深さレベルを設定します。

Class: Brownie_Node

Brownie_Node::__construct()
標準のコンストラクタです。
Brownie_Node::getType()
エレメントのタイプを取得します。
Brownie_Node::setType()
エレメントのタイプを設定します。

Class Details

[line 263]
文書のルートを表すエレメントの実装です。

文書のルートはエレメントを保持することは出来ますが、インラインを直接保持することは出来ません。 またエレメント階層の深さレベルは-1に定義されます。 従って深さレベル0以上の通常の要素は全て文書ルートに「保有される」ことになります。




[ Top ]


Class Methods


constructor __construct [line 275]

Brownie_Element_Root __construct( )

標準のコンストラクタです。



Tags:

access:  public


Overrides Brownie_Element::__construct() (標準のコンストラクタです。)

[ Top ]

method getParam [line 292]

void getParam( string $key, [mixed $def = false])

指定の名前のパラメータを取得します。

$def引数は指定の名前のパラメータが見付からなかった場合の返却値です。 指定の名前のパラメータが見付からなかった場合、標準ではfalseが返されます。




Tags:

access:  public


Parameters:

string   $key   パラメータ名
mixed   $def   パラメータが見付からない場合の返却値

[ Top ]

method paramToArray [line 319]

array paramToArray( )

パラメータを配列で返します。

配列の添字がパラメータ名、値がパラメータ値になります。




Tags:

return:  パラメータの配列
access:  public


[ Top ]

method setParam [line 307]

void setParam( string $key, mixed $value)

指定の名前のパラメータを設定します。



Tags:

access:  public


Parameters:

string   $key   パラメータ名
mixed   $value   パラメータ値

[ Top ]


Documentation generated on Sun, 06 Jan 2008 01:33:04 +0900 by phpDocumentor 1.3.2