Home
last modified time | relevance | path

Searched refs:xpath (Results 1 – 25 of 96) sorted by relevance

1234

/plugin/scrape/vendor/symfony/css-selector/XPath/Extension/
DPseudoClassExtension.php46 public function translateRoot(XPathExpr $xpath): XPathExpr argument
48 return $xpath->addCondition('not(parent::*)');
51 public function translateFirstChild(XPathExpr $xpath): XPathExpr argument
53 return $xpath
59 public function translateLastChild(XPathExpr $xpath): XPathExpr argument
61 return $xpath
70 public function translateFirstOfType(XPathExpr $xpath): XPathExpr argument
72 if ('*' === $xpath->getElement()) {
76 return $xpath
84 public function translateLastOfType(XPathExpr $xpath): XPathExpr argument
[all …]
DHtmlExtension.php66 public function translateChecked(XPathExpr $xpath): XPathExpr argument
68 return $xpath->addCondition(
75 public function translateLink(XPathExpr $xpath): XPathExpr argument
77 … return $xpath->addCondition("@href and (name(.) = 'a' or name(.) = 'link' or name(.) = 'area')");
80 public function translateDisabled(XPathExpr $xpath): XPathExpr argument
82 return $xpath->addCondition(
106 public function translateEnabled(XPathExpr $xpath): XPathExpr argument
108 return $xpath->addCondition(
142 public function translateLang(XPathExpr $xpath, FunctionNode $function): XPathExpr argument
151 return $xpath->addCondition(sprintf(
[all …]
DAttributeMatchingExtension.php46 public function translateExists(XPathExpr $xpath, string $attribute, ?string $value): XPathExpr argument
48 return $xpath->addCondition($attribute);
51 public function translateEquals(XPathExpr $xpath, string $attribute, ?string $value): XPathExpr argument
53 … return $xpath->addCondition(sprintf('%s = %s', $attribute, Translator::getXpathLiteral($value)));
56 … public function translateIncludes(XPathExpr $xpath, string $attribute, ?string $value): XPathExpr argument
58 return $xpath->addCondition($value ? sprintf(
65 … public function translateDashMatch(XPathExpr $xpath, string $attribute, ?string $value): XPathExpr argument
67 return $xpath->addCondition(sprintf(
75 …public function translatePrefixMatch(XPathExpr $xpath, string $attribute, ?string $value): XPathEx… argument
77 return $xpath->addCondition($value ? sprintf(
[all …]
DFunctionExtension.php51 …public function translateNthChild(XPathExpr $xpath, FunctionNode $function, bool $last = false, bo… argument
59 $xpath->addStarPrefix();
61 $xpath->addNameTest();
65 return $xpath->addCondition('position() = '.($last ? 'last() - '.($b - 1) : $b));
70 return $xpath->addCondition('false()');
95 return $xpath->addCondition(implode(' and ', $conditions));
106 public function translateNthLastChild(XPathExpr $xpath, FunctionNode $function): XPathExpr argument
108 return $this->translateNthChild($xpath, $function, true);
111 public function translateNthOfType(XPathExpr $xpath, FunctionNode $function): XPathExpr argument
113 return $this->translateNthChild($xpath, $function, false, false);
[all …]
DNodeExtension.php92 $xpath = $translator->nodeToXPath($node->getSelector());
97 return $xpath->addCondition(sprintf('not(%s)', $subXpath->getCondition()));
100 return $xpath->addCondition('0');
105 $xpath = $translator->nodeToXPath($node->getSelector());
107 return $translator->addFunction($xpath, $node);
112 $xpath = $translator->nodeToXPath($node->getSelector());
114 return $translator->addPseudoClass($xpath, $node->getIdentifier());
133 $xpath = $translator->nodeToXPath($node->getSelector());
139 return $translator->addAttributeMatching($xpath, $node->getOperator(), $attribute, $value);
144 $xpath = $translator->nodeToXPath($node->getSelector());
[all …]
DCombinationExtension.php41 public function translateDescendant(XPathExpr $xpath, XPathExpr $combinedXpath): XPathExpr argument
43 return $xpath->join('/descendant-or-self::*/', $combinedXpath);
46 public function translateChild(XPathExpr $xpath, XPathExpr $combinedXpath): XPathExpr argument
48 return $xpath->join('/', $combinedXpath);
51 public function translateDirectAdjacent(XPathExpr $xpath, XPathExpr $combinedXpath): XPathExpr argument
53 return $xpath
59 public function translateIndirectAdjacent(XPathExpr $xpath, XPathExpr $combinedXpath): XPathExpr argument
61 return $xpath->join('/following-sibling::', $combinedXpath);
/plugin/zotero/
DImportZoteroFeedReader.php27 $xpath = $this->getXPath($feed);
28 $nextUrl = $this->getNextUrl($xpath);
32 $xpath = $this->getXPath($additionalFeed);
33 $this->addEntriesToMainFeed($dom, $xpath);
36 $nextUrl = $this->getNextUrl($xpath);
67 $xpath = $this->getXPathForDocument($dom);
68 return $xpath;
73 $xpath = new DomXPath($dom);
74 $xpath->registerNameSpace("atom", "http://www.w3.org/2005/Atom");
75 $xpath->registerNameSpace("zapi", "http://zotero.org/ns/api");
[all …]
DFeedZoteroRepository.php17 private $xpath; variable in FeedZoteroRepository
36 $r = $this->xpath->query('//atom:feed/atom:entry');
54 $this->xpath = new DomXPath($this->dom);
55 $this->xpath->registerNameSpace("atom", "http://www.w3.org/2005/Atom");
56 $this->xpath->registerNameSpace("zapi", "http://zotero.org/ns/api");
72 $item = $this->xpath->query("./zapi:itemType", $node)->item(0);
82 $item = $this->xpath->query("./zapi:key", $node)->item(0);
92 $item = $this->xpath->query("./atom:content", $node)->item(0);
/plugin/fedauth/Auth/Yadis/
DXML.php85 * @param string $xpath The XPath expression to be evaluated.
94 function &evalXPath($xpath, $node = null) argument
141 $this->xpath = null;
155 $this->xpath = $this->doc->xpath_new_context();
162 return xpath_register_ns($this->xpath, $prefix, $uri);
165 function &evalXPath($xpath, $node = null) argument
168 $result = @$this->xpath->xpath_eval($xpath, $node);
170 $result = @$this->xpath->xpath_eval($xpath);
224 $this->xpath = null;
241 $this->xpath = new DOMXPath($this->doc);
[all …]
/plugin/openid/Auth/Yadis/
DXML.php87 * @param string $xpath The XPath expression to be evaluated.
96 function &evalXPath($xpath, $node = null) argument
146 $this->xpath = null;
160 $this->xpath = $this->doc->xpath_new_context();
167 return xpath_register_ns($this->xpath, $prefix, $uri);
170 function &evalXPath($xpath, $node = null) argument
173 $result = @$this->xpath->xpath_eval($xpath, $node);
175 $result = @$this->xpath->xpath_eval($xpath);
232 protected $xpath = null; variable in Auth_Yadis_dom
265 $this->xpath = new DOMXPath($this->doc);
[all …]
/plugin/combo/vendor/php-webdriver/webdriver/lib/
H A DWebDriverSelect.php85 $xpath = './/option[@value = ' . XPathEscaper::escapeQuotes($value) . ']';
86 $options = $this->element->findElements(WebDriverBy::xpath($xpath));
106 $xpath = './/option[normalize-space(.) = ' . XPathEscaper::escapeQuotes($text) . ']';
107 $options = $this->element->findElements(WebDriverBy::xpath($xpath));
141 … $xpath = './/option[contains(normalize-space(.), ' . XPathEscaper::escapeQuotes($text) . ')]';
142 $options = $this->element->findElements(WebDriverBy::xpath($xpath));
191 $xpath = './/option[@value = ' . XPathEscaper::escapeQuotes($value) . ']';
192 $options = $this->element->findElements(WebDriverBy::xpath($xpath));
204 $xpath = './/option[normalize-space(.) = ' . XPathEscaper::escapeQuotes($text) . ']';
205 $options = $this->element->findElements(WebDriverBy::xpath($xpath));
[all …]
H A DAbstractWebDriverCheckboxOrRadio.php151 $xpath = 'ancestor::label';
152 $xpathNormalize = sprintf('%s[%s]', $xpath, $normalizeFilter);
158 $xpath .= sprintf(' | //label[%s]', $idFilter);
163 $element->findElement(WebDriverBy::xpath($xpathNormalize));
172 if ($text !== $element->findElement(WebDriverBy::xpath($xpath))->getText()) {
198 $form = $this->element->findElement(WebDriverBy::xpath('ancestor::form'));
202 return $form->findElements(WebDriverBy::xpath(
210 WebDriverBy::xpath(sprintf(
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/
DXML.php99 $xpath = new \DOMXPath($dom);
101 $curve = self::loadCurveByParam($xpath);
103 $pubkey = self::query($xpath, 'publickey', 'Public Key is not present');
105 $QA = self::query($xpath, 'ecdsakeyvalue')->length ?
106 self::extractPointRFC4050($xpath, $curve) :
123 private static function query($xpath, $name, $error = null, $decode = true) argument
130 $result = $xpath->query($query);
153 $xpath = new \DOMXPath($dom);
154 $nodes = $xpath->query("//*[namespace::*[.='$ns'] and not(../namespace::*[.='$ns'])]");
183 private static function extractPointRFC4050(\DOMXPath $xpath, BaseCurve $curve) argument
[all …]
/plugin/davcal/vendor/sabre/dav/tests/Sabre/DAV/
H A DServerPropsTest.php62 list($data) = $xml->xpath('/d:multistatus/d:response/d:href');
65 $data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:resourcetype');
88 list($data) = $xml->xpath('/d:multistatus/d:response/d:href');
91 $data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:getcontentlength');
111 … $data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:supportedlock/d:lockentry');
114 …$data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:supportedlock/d:lockentry/d:loc…
117 …$data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:supportedlock/d:lockentry/d:loc…
120 …$data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:supportedlock/d:lockentry/d:loc…
123 …$data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:supportedlock/d:lockentry/d:loc…
126 …$data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:supportedlock/d:lockentry/d:loc…
[all …]
H A DServerPropsInfiniteDepthTest.php69 list($data) = $xml->xpath('/d:multistatus/d:response/d:href');
72 $data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:resourcetype');
96 … $data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:supportedlock/d:lockentry');
99 …$data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:supportedlock/d:lockentry/d:loc…
102 …$data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:supportedlock/d:lockentry/d:loc…
105 …$data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:supportedlock/d:lockentry/d:loc…
108 …$data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:supportedlock/d:lockentry/d:loc…
111 …$data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:supportedlock/d:lockentry/d:loc…
130 $data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:lockdiscovery');
157 …$this->assertTrue(count($xml->xpath($test))==true,'We expected the ' . $test . ' element to appear…
[all …]
/plugin/davcal/vendor/sabre/dav/tests/Sabre/DAVACL/
H A DPrincipalPropertySearchTest.php167 $xpath = is_int($v1)?$v2:$v1;
169 $result = $xml->xpath($xpath);
174 …ls($count,count($result), 'we expected ' . $count . ' appearances of ' . $xpath . ' . We found ' .…
240 $xpath = is_int($v1)?$v2:$v1;
242 $result = $xml->xpath($xpath);
247 …ls($count,count($result), 'we expected ' . $count . ' appearances of ' . $xpath . ' . We found ' .…
312 $xpath = is_int($v1)?$v2:$v1;
314 $result = $xml->xpath($xpath);
319 …ls($count,count($result), 'we expected ' . $count . ' appearances of ' . $xpath . ' . We found ' .…
371 $xpath = is_int($v1)?$v2:$v1;
[all …]
/plugin/davcal/vendor/sabre/dav/tests/Sabre/DAV/Xml/Property/
H A DSupportedReportSetTest.php48 $data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop');
51 $data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:supported-report-set');
54 $data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:status');
93 $data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:supported-report-set');
96 …$data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:supported-report-set/d:supporte…
99 …$data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:supported-report-set/d:supporte…
102 …$data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:supported-report-set/d:supporte…
105 …$data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:prop/d:supported-report-set/d:supporte…
108 $data = $xml->xpath('/d:multistatus/d:response/d:propstat/d:status');
/plugin/saml/phpsaml/extlib/xmlseclibs/
Dxmlseclibs.php563 $xpath = new DOMXPath($this->sigNode->ownerDocument);
564 $xpath->registerNamespace('secdsig', XMLSecurityDSig::XMLDSIGNS);
565 $this->xPathCtx = $xpath;
587 $xpath = new DOMXPath($doc);
588 $xpath->registerNamespace('secdsig', XMLSecurityDSig::XMLDSIGNS);
590 $nodeset = $xpath->query($query, $objDoc);
593 $nodeset = $xpath->query($query, $this->sigNode);
623 if ($xpath = $this->getXPathObj()) {
625 $nodeset = $xpath->query($query, $this->sigNode);
628 $nodeset = $xpath->query($query, $sinfo);
[all …]
/plugin/adfs/phpsaml/extlib/xmlseclibs/
Dxmlseclibs.php563 $xpath = new DOMXPath($this->sigNode->ownerDocument);
564 $xpath->registerNamespace('secdsig', XMLSecurityDSig::XMLDSIGNS);
565 $this->xPathCtx = $xpath;
587 $xpath = new DOMXPath($doc);
588 $xpath->registerNamespace('secdsig', XMLSecurityDSig::XMLDSIGNS);
590 $nodeset = $xpath->query($query, $objDoc);
593 $nodeset = $xpath->query($query, $this->sigNode);
623 if ($xpath = $this->getXPathObj()) {
625 $nodeset = $xpath->query($query, $this->sigNode);
628 $nodeset = $xpath->query($query, $sinfo);
[all …]
/plugin/wysiwyg/fckeditor/editor/_source/classes/
Dfckxml_ie.js67 SelectNodes : function( xpath, contextNode ) argument
73 return contextNode.selectNodes( xpath ) ;
75 return this.DOMDocument.selectNodes( xpath ) ;
78 SelectSingleNode : function( xpath, contextNode ) argument
84 return contextNode.selectSingleNode( xpath ) ;
86 return this.DOMDocument.selectSingleNode( xpath ) ;
/plugin/grensladawritezor/fckeditor/editor/_source/classes/
Dfckxml_ie.js70 FCKXml.prototype.SelectNodes = function( xpath, contextNode ) argument
76 return contextNode.selectNodes( xpath ) ;
78 return this.DOMDocument.selectNodes( xpath ) ;
81 FCKXml.prototype.SelectSingleNode = function( xpath, contextNode ) argument
87 return contextNode.selectSingleNode( xpath ) ;
89 return this.DOMDocument.selectSingleNode( xpath ) ;
/plugin/wysiwyg/fckeditor/editor/filemanager/browser/default/js/
Dfckxml.js92 FCKXml.prototype.SelectNodes = function( xpath ) argument
95 return this.DOMDocument.selectNodes( xpath ) ;
100 var xPathResult = this.DOMDocument.evaluate( xpath, this.DOMDocument,
115 FCKXml.prototype.SelectSingleNode = function( xpath ) argument
118 return this.DOMDocument.selectSingleNode( xpath ) ;
121 var xPathResult = this.DOMDocument.evaluate( xpath, this.DOMDocument,
/plugin/grensladawritezor/fckeditor/editor/filemanager/browser/default/js/
Dfckxml.js93 FCKXml.prototype.SelectNodes = function( xpath ) argument
96 return this.DOMDocument.selectNodes( xpath ) ;
101 var xPathResult = this.DOMDocument.evaluate( xpath, this.DOMDocument,
116 FCKXml.prototype.SelectSingleNode = function( xpath ) argument
119 return this.DOMDocument.selectSingleNode( xpath ) ;
122 var xPathResult = this.DOMDocument.evaluate( xpath, this.DOMDocument,
/plugin/wordimport/docx/
DNumbering.php26 foreach ($xml->xpath('//w:abstractNum') as $num) {
30 foreach ($num->xpath('.//w:lvl') as $lvl) {
32 $lvlType = (string)$lvl->xpath('.//w:numFmt')[0]->attributes('w', true)->val;
39 foreach ($xml->xpath('//w:num') as $num) {
41 $typeId = (int)$num->xpath('.//w:abstractNumId')[0]->attributes('w', true)->val;
/plugin/fckg/fckeditor/editor/filemanager/browser/default/js/
Dfckxml.js113 FCKXml.prototype.SelectNodes = function( xpath ) argument
116 return this.DOMDocument.selectNodes( xpath ) ;
121 var xPathResult = this.DOMDocument.evaluate( xpath, this.DOMDocument,
136 FCKXml.prototype.SelectSingleNode = function( xpath ) argument
139 return this.DOMDocument.selectSingleNode( xpath ) ;
142 var xPathResult = this.DOMDocument.evaluate( xpath, this.DOMDocument,

1234