MIOLO26
Carregando...
Procurando...
Nenhuma entrada encontrada
Referência à classe Frame_Tree

Membros públicos

 __construct (DomDocument $dom)
 
 get_dom ()
 
 get_root ()
 
 get_frame ($id)
 
 get_frames ()
 
 build_tree ()
 

Membros protegidos

 _build_tree_r (DomNode $node)
 

Atributos Protegidos

 $_dom
 
 $_root
 
 $_registry
 

Atributos Protegidos Estáticos

static $_HIDDEN_TAGS
 

Documentação dos Construtores & Destrutor

◆ __construct()

__construct ( DomDocument $dom)

Class constructor

Parâmetros
DomDocument$domthe main DomDocument object representing the current html document

Documentação das funções

◆ _build_tree_r()

_build_tree_r ( DomNode $node)
protected

Recursively adds Frame objects to the tree

Recursively build a tree of Frame objects based on a dom tree. No layout information is calculated at this time, although the tree may be adjusted (i.e. nodes and frames for generated content and images may be created).

Parâmetros
DomNode$nodethe current DomNode being considered
Retorna
Frame

◆ build_tree()

build_tree ( )

Builds the tree

◆ get_dom()

get_dom ( )

Returns the DomDocument object representing the curent html document

Retorna
DomDocument

◆ get_frame()

get_frame ( $id)

Returns a specific frame given its id

Parâmetros
string$id
Retorna
Frame

◆ get_frames()

get_frames ( )

Returns a post-order iterator for all frames in the tree

Retorna
FrameTreeList

◆ get_root()

get_root ( )

Returns the root frame of the tree

Retorna
Frame

Documentação dos campos e atributos

◆ $_dom

$_dom
protected

◆ $_HIDDEN_TAGS

$_HIDDEN_TAGS
staticprotected
Valor inicial:
= array("area", "base", "basefont", "head", "style",
"meta", "title", "colgroup",
"noembed", "noscript", "param", "#comment")

◆ $_registry

$_registry
protected

◆ $_root

$_root
protected

A documentação para esta classe foi gerada a partir do seguinte ficheiro: