public function QueryPath::before in QueryPath 6
Same name and namespace in other branches
- 7.3 QueryPath/QueryPath.php \QueryPath::before()
- 7.2 QueryPath/QueryPath.php \QueryPath::before()
1 call to QueryPath::before()
- QueryPath::textBefore in QueryPath/
QueryPath.php
File
- QueryPath/
QueryPath.php, line 690
Class
Code
public function before($data) {
$data = $this
->prepareInsert($data);
foreach ($this->matches as $m) {
$ins = $data
->cloneNode(TRUE);
$m->parentNode
->insertBefore($ins, $m);
}
return $this;
}