Mark MCRouter* as __PHPStdLib
[hiphop-php.git] / hphp / hack / hhi / stdlib / builtins_simplexml.hhi
blob622bc0b7c79c421f84ad34bb7918305585a4f8d6
1 <?hh // decl /* -*- mode: php -*- */
2 /**
3  * Copyright (c) 2014, Facebook, Inc.
4  * All rights reserved.
5  *
6  * This source code is licensed under the MIT license found in the
7  * LICENSE file in the "hack" directory of this source tree.
8  *
9  */
11 const int LIBXML_COMPACT = 0;
12 const int LIBXML_DTDATTR = 0;
13 const int LIBXML_DTDLOAD = 0;
14 const int LIBXML_DTDVALID = 0;
15 const int LIBXML_HTML_NOIMPLIED = 0;
16 const int LIBXML_HTML_NODEFDTD = 0;
17 const int LIBXML_NOBLANKS = 0;
18 const int LIBXML_NOCDATA = 0;
19 const int LIBXML_NOEMPTYTAG = 0;
20 const int LIBXML_NOENT = 0;
21 const int LIBXML_NOERROR = 0;
22 const int LIBXML_NONET = 0;
23 const int LIBXML_NOWARNING = 0;
24 const int LIBXML_NOXMLDECL = 0;
25 const int LIBXML_NSCLEAN = 0;
26 const int LIBXML_PARSEHUGE = 0;
27 const int LIBXML_PEDANTIC = 0;
28 const int LIBXML_XINCLUDE = 0;
29 const int LIBXML_ERR_ERROR = 0;
30 const int LIBXML_ERR_FATAL = 0;
31 const int LIBXML_ERR_NONE = 0;
32 const int LIBXML_ERR_WARNING = 0;
33 const int LIBXML_VERSION = 0;
34 const int LIBXML_SCHEMA_CREATE = 0;
36 <<__PHPStdLib>>
37 function libxml_get_errors();
38 <<__PHPStdLib>>
39 function libxml_get_last_error();
40 <<__PHPStdLib>>
41 function libxml_clear_errors();
42 <<__PHPStdLib>>
43 function libxml_use_internal_errors($use_errors = null);
44 <<__PHPStdLib>>
45 function libxml_suppress_errors($suppress_errors);
46 <<__PHPStdLib>>
47 function libxml_set_streams_context($streams_context);
48 <<__PHPStdLib>>
49 function libxml_disable_entity_loader($disable = true);
51 <<__PHPStdLib>>
52 function simplexml_load_string($data, $class_name = "SimpleXMLElement", $options = 0, $ns = "", $is_prefix = false);
53 <<__PHPStdLib>>
54 function simplexml_load_file($filename, $class_name = "SimpleXMLElement", $options = 0, $ns = "", $is_prefix = false);
55 class SimpleXMLElement {
56   public function __construct($data, $options = 0, $data_is_url = false, $ns = "", $is_prefix = false);
57   public function offsetExists($index);
58   public function offsetGet($index);
59   public function offsetSet($index, $newvalue);
60   public function offsetUnset($index);
61   public function getIterator();
62   public function count();
63   public function xpath($path);
64   public function registerXPathNamespace($prefix, $ns);
65   public function asXML($filename = "");
66   public function getNamespaces($recursive = false);
67   public function getDocNamespaces($recursive = false);
68   public function children($ns = "", $is_prefix = false);
69   public function getName();
70   public function attributes($ns = "", $is_prefix = false);
71   public function addChild($qname, $value = null, $ns = null);
72   public function addAttribute($qname, $value = null, $ns = null);
73   public function __toString();
74   public function __get($name);
75   public function __set($name, $value);
76   public function __isset($name);
77   public function __unset($name);
79 class LibXMLError {
80   // php.net/manual/en/class.libxmlerror.php
81   public function __construct();
82   public int $level;
83   public int $code;
84   public int $column;
85   public string $message;
86   public string $file;
87   public int $line;
89 class SimpleXMLElementIterator {
90   public function __construct();
91   public function current();
92   public function key();
93   public function next();
94   public function rewind();
95   public function valid();