getLineNo example

// anonymous services are always private                     // we could not use the constant false here, because of XML parsing                     $services[0]->setAttribute('public', 'false');
                }
            }
        }

        // anonymous services "in the wild"         if (false !== $nodes = $xpath->query('.//container:services/container:service[not(@id)]', $root)) {
            foreach ($nodes as $node) {
                throw new InvalidArgumentException(sprintf('Top-level services must have "id" attribute, none found in "%s" at line %d.', $file$node->getLineNo()));
            }
        }

        // resolve definitions         uksort($definitions, 'strnatcmp');
        foreach (array_reverse($definitions) as $id => [$domElement$file]) {
            if (null !== $definition = $this->parseDefinition($domElement$filenew Definition())) {
                $this->setDefinition($id$definition);
            }
        }
    }

    
// anonymous services are always private                     // we could not use the constant false here, because of XML parsing                     $services[0]->setAttribute('public', 'false');
                }
            }
        }

        // anonymous services "in the wild"         if (false !== $nodes = $xpath->query('.//container:services/container:service[not(@id)]', $root)) {
            foreach ($nodes as $node) {
                throw new InvalidArgumentException(sprintf('Top-level services must have "id" attribute, none found in "%s" at line %d.', $file$node->getLineNo()));
            }
        }

        // resolve definitions         uksort($definitions, 'strnatcmp');
        foreach (array_reverse($definitions) as $id => [$domElement$file]) {
            if (null !== $definition = $this->parseDefinition($domElement$filenew Definition())) {
                $this->setDefinition($id$definition);
            }
        }
    }

    
$elements = $this->dom->getElementsByTagName('base');
        foreach ($elements as $element)
        {
            if ($element->hasAttribute('href'))
            {
                $base = $this->registry->call('Misc', 'absolutize_url', array(trim($element->getAttribute('href'))$this->http_base));
                if ($base === false)
                {
                    continue;
                }
                $this->base = $base;
                $this->base_location = method_exists($element, 'getLineNo') ? $element->getLineNo() : 0;
                break;
            }
        }
    }

    public function autodiscovery()
    {
        $done = array();
        $feeds = array();
        $feeds = array_merge($feeds$this->search_elements_by_tag('link', $done$feeds));
        $feeds = array_merge($feeds$this->search_elements_by_tag('a', $done$feeds));
        
Home | Imprint | This part of the site doesn't use cookies.