Dodo
DOm DOcument implementation
|
A live range. More...
Public Member Functions | |
__construct (Document $doc) | |
Constructor, used by Document::createRange() | |
Node | getCommonAncestorContainer () |
setStart ( $node, int $offset) | |
setEnd ( $node, int $offset) | |
setStartBefore ( $node) | |
setStartAfter ( $node) | |
setEndBefore ( $node) | |
setEndAfter ( $node) | |
collapse (bool $toStart=false) | |
selectNode ( $node) | |
selectNodeContents ( $node) | |
int | compareBoundaryPoints (int $how, $sourceRange) |
Range | cloneRange () |
Return a new live range with the same start and end as this. | |
detach () | |
bool | isPointInRange ( $node, int $offset) |
int | comparePoint ( $node, int $offset) |
bool | intersectsNode ( $node) |
string | toString () |
Public Member Functions inherited from Wikimedia\Dodo\AbstractRange | |
Node | getStartContainer () |
int | getStartOffset () |
Node | getEndContainer () |
int | getEndOffset () |
bool | getCollapsed () |
Public Member Functions inherited from Wikimedia::IDLeDOM::Range | |
void | deleteContents () |
DocumentFragment | extractContents () |
DocumentFragment | cloneContents () |
void | insertNode ( $node) |
void | surroundContents ( $newParent) |
DocumentFragment | createContextualFragment (string $fragment) |
Additional Inherited Members | |
Protected Member Functions inherited from Wikimedia\Dodo\AbstractRange | |
__construct (Node $startContainer, int $startOffset, Node $endContainer, int $endOffset) | |
Create a new AbstractRange object. | |
Protected Attributes inherited from Wikimedia\Dodo\AbstractRange | |
BoundaryPoint | $_start |
BoundaryPoint | $_end |
A live range.
Wikimedia\Dodo\Range::__construct | ( | Document | $doc | ) |
Constructor, used by Document::createRange()
Document | $doc | The document associated with this Range |
Range Wikimedia\Dodo\Range::cloneRange | ( | ) |
Return a new live range with the same start and end as this.
Implements Wikimedia::IDLeDOM::Range.
Wikimedia\Dodo\Range::collapse | ( | bool | $toStart = false | ) |
bool | $toStart |
Implements Wikimedia::IDLeDOM::Range.
int Wikimedia\Dodo\Range::compareBoundaryPoints | ( | int | $how, |
$sourceRange ) |
int | $how | |
\Wikimedia\IDLeDOM\Range | $sourceRange |
Implements Wikimedia::IDLeDOM::Range.
int Wikimedia\Dodo\Range::comparePoint | ( | $node, | |
int | $offset ) |
Wikimedia\Dodo\Range::detach | ( | ) |
Implements Wikimedia::IDLeDOM::Range.
Node Wikimedia\Dodo\Range::getCommonAncestorContainer | ( | ) |
Implements Wikimedia::IDLeDOM::Range.
bool Wikimedia\Dodo\Range::intersectsNode | ( | $node | ) |
bool Wikimedia\Dodo\Range::isPointInRange | ( | $node, | |
int | $offset ) |
Wikimedia\Dodo\Range::selectNode | ( | $node | ) |
INode | $node |
Implements Wikimedia::IDLeDOM::Range.
Wikimedia\Dodo\Range::selectNodeContents | ( | $node | ) |
INode | $node |
Implements Wikimedia::IDLeDOM::Range.
Wikimedia\Dodo\Range::setEnd | ( | $node, | |
int | $offset ) |
INode | $node | |
int | $offset |
Implements Wikimedia::IDLeDOM::Range.
Wikimedia\Dodo\Range::setEndAfter | ( | $node | ) |
INode | $node |
Implements Wikimedia::IDLeDOM::Range.
Wikimedia\Dodo\Range::setEndBefore | ( | $node | ) |
INode | $node |
Implements Wikimedia::IDLeDOM::Range.
Wikimedia\Dodo\Range::setStart | ( | $node, | |
int | $offset ) |
INode | $node | |
int | $offset |
Implements Wikimedia::IDLeDOM::Range.
Wikimedia\Dodo\Range::setStartAfter | ( | $node | ) |
INode | $node |
Implements Wikimedia::IDLeDOM::Range.
Wikimedia\Dodo\Range::setStartBefore | ( | $node | ) |
INode | $node |
Implements Wikimedia::IDLeDOM::Range.
string Wikimedia\Dodo\Range::toString | ( | ) |
Implements Wikimedia::IDLeDOM::Range.