| 1 |
<?php |
| 2 |
|
| 3 |
// Start of xsl v.0.1 |
| 4 |
|
| 5 |
class XSLTProcessor { |
| 6 |
|
| 7 |
/** |
| 8 |
* Import stylesheet |
| 9 |
* @link http://www.php.net/manual/en/xsltprocessor.importstylesheet.php |
| 10 |
* @param stylesheet object <p> |
| 11 |
* The imported style sheet as a DOMDocument or |
| 12 |
* SimpleXMLElement object. |
| 13 |
* </p> |
| 14 |
* @return void |
| 15 |
*/ |
| 16 |
public function importStylesheet ($stylesheet) {} |
| 17 |
|
| 18 |
/** |
| 19 |
* Transform to a DOMDocument |
| 20 |
* @link http://www.php.net/manual/en/xsltprocessor.transformtodoc.php |
| 21 |
* @param doc DOMNode <p> |
| 22 |
* The node to be transformed. |
| 23 |
* </p> |
| 24 |
* @return DOMDocument The resulting DOMDocument or false on error. |
| 25 |
*/ |
| 26 |
public function transformToDoc (DOMNode $doc) {} |
| 27 |
|
| 28 |
/** |
| 29 |
* Transform to URI |
| 30 |
* @link http://www.php.net/manual/en/xsltprocessor.transformtouri.php |
| 31 |
* @param doc DOMDocument <p> |
| 32 |
* The document to transform. |
| 33 |
* </p> |
| 34 |
* @param uri string <p> |
| 35 |
* The target URI for the transformation. |
| 36 |
* </p> |
| 37 |
* @return int the number of bytes written or false if an error occurred. |
| 38 |
*/ |
| 39 |
public function transformToUri (DOMDocument $doc, $uri) {} |
| 40 |
|
| 41 |
/** |
| 42 |
* Transform to XML |
| 43 |
* @link http://www.php.net/manual/en/xsltprocessor.transformtoxml.php |
| 44 |
* @param doc DOMDocument <p> |
| 45 |
* The transformed document. |
| 46 |
* </p> |
| 47 |
* @return string The result of the transformation as a string or false on error. |
| 48 |
*/ |
| 49 |
public function transformToXml (DOMDocument $doc) {} |
| 50 |
|
| 51 |
/** |
| 52 |
* Set value for a parameter |
| 53 |
* @link http://www.php.net/manual/en/xsltprocessor.setparameter.php |
| 54 |
* @param namespace string <p> |
| 55 |
* The namespace URI of the XSLT parameter. |
| 56 |
* </p> |
| 57 |
* @param name string <p> |
| 58 |
* The local name of the XSLT parameter. |
| 59 |
* </p> |
| 60 |
* @param value string <p> |
| 61 |
* The new value of the XSLT parameter. |
| 62 |
* </p> |
| 63 |
* @return bool Returns true on success, false on failure. |
| 64 |
*/ |
| 65 |
public function setParameter ($namespace, $name, $value) {} |
| 66 |
|
| 67 |
/** |
| 68 |
* Get value of a parameter |
| 69 |
* @link http://www.php.net/manual/en/xsltprocessor.getparameter.php |
| 70 |
* @param namespaceURI string <p> |
| 71 |
* The namespace URI of the XSLT parameter. |
| 72 |
* </p> |
| 73 |
* @param localName string <p> |
| 74 |
* The local name of the XSLT parameter. |
| 75 |
* </p> |
| 76 |
* @return string The value of the parameter (as a string), or false if it's not set. |
| 77 |
*/ |
| 78 |
public function getParameter ($namespaceURI, $localName) {} |
| 79 |
|
| 80 |
/** |
| 81 |
* Remove parameter |
| 82 |
* @link http://www.php.net/manual/en/xsltprocessor.removeparameter.php |
| 83 |
* @param namespaceURI string <p> |
| 84 |
* The namespace URI of the XSLT parameter. |
| 85 |
* </p> |
| 86 |
* @param localName string <p> |
| 87 |
* The local name of the XSLT parameter. |
| 88 |
* </p> |
| 89 |
* @return bool Returns true on success, false on failure. |
| 90 |
*/ |
| 91 |
public function removeParameter ($namespaceURI, $localName) {} |
| 92 |
|
| 93 |
/** |
| 94 |
* Determine if PHP has EXSLT support |
| 95 |
* @link http://www.php.net/manual/en/xsltprocessor.hasexsltsupport.php |
| 96 |
* @return bool Returns true on success, false on failure. |
| 97 |
*/ |
| 98 |
public function hasExsltSupport () {} |
| 99 |
|
| 100 |
/** |
| 101 |
* Enables the ability to use PHP functions as XSLT functions |
| 102 |
* @link http://www.php.net/manual/en/xsltprocessor.registerphpfunctions.php |
| 103 |
* @param restrict mixed[optional] <p> |
| 104 |
* Use this parameter to only allow certain functions to be called from |
| 105 |
* XSLT. |
| 106 |
* </p> |
| 107 |
* <p> |
| 108 |
* This parameter can be either a string (a function name) or an array of |
| 109 |
* functions. |
| 110 |
* </p> |
| 111 |
* @return void |
| 112 |
*/ |
| 113 |
public function registerPHPFunctions ($restrict = null) {} |
| 114 |
|
| 115 |
/** |
| 116 |
* Sets profiling output file |
| 117 |
* @link http://www.php.net/manual/en/xsltprocessor.setprofiling.php |
| 118 |
* @param filename string <p> |
| 119 |
* Path to the file to dump profiling information. |
| 120 |
* </p> |
| 121 |
* @return bool Returns true on success, false on failure. |
| 122 |
*/ |
| 123 |
public function setProfiling ($filename) {} |
| 124 |
|
| 125 |
/** |
| 126 |
* Set security preferences |
| 127 |
* @link http://www.php.net/manual/en/xsltprocessor.setsecurityprefs.php |
| 128 |
* @param securityPrefs int |
| 129 |
* @return int |
| 130 |
*/ |
| 131 |
public function setSecurityPrefs ($securityPrefs) {} |
| 132 |
|
| 133 |
/** |
| 134 |
* Get security preferences |
| 135 |
* @link http://www.php.net/manual/en/xsltprocessor.getsecurityprefs.php |
| 136 |
* @return int |
| 137 |
*/ |
| 138 |
public function getSecurityPrefs () {} |
| 139 |
|
| 140 |
} |
| 141 |
define ('XSL_CLONE_AUTO', 0); |
| 142 |
define ('XSL_CLONE_NEVER', -1); |
| 143 |
define ('XSL_CLONE_ALWAYS', 1); |
| 144 |
define ('XSL_SECPREF_NONE', 0); |
| 145 |
define ('XSL_SECPREF_READ_FILE', 2); |
| 146 |
define ('XSL_SECPREF_WRITE_FILE', 4); |
| 147 |
define ('XSL_SECPREF_CREATE_DIRECTORY', 8); |
| 148 |
define ('XSL_SECPREF_READ_NETWORK', 16); |
| 149 |
define ('XSL_SECPREF_WRITE_NETWORK', 32); |
| 150 |
define ('XSL_SECPREF_DEFAULT', 44); |
| 151 |
|
| 152 |
/** |
| 153 |
* libxslt version like 10117. Available as of PHP 5.1.2. |
| 154 |
* @link http://www.php.net/manual/en/xsl.constants.php |
| 155 |
*/ |
| 156 |
define ('LIBXSLT_VERSION', 10127); |
| 157 |
|
| 158 |
/** |
| 159 |
* libxslt version like 1.1.17. Available as of PHP 5.1.2. |
| 160 |
* @link http://www.php.net/manual/en/xsl.constants.php |
| 161 |
*/ |
| 162 |
define ('LIBXSLT_DOTTED_VERSION', "1.1.27"); |
| 163 |
|
| 164 |
/** |
| 165 |
* libexslt version like 813. Available as of PHP 5.1.2. |
| 166 |
* @link http://www.php.net/manual/en/xsl.constants.php |
| 167 |
*/ |
| 168 |
define ('LIBEXSLT_VERSION', 816); |
| 169 |
|
| 170 |
/** |
| 171 |
* libexslt version like 1.1.17. Available as of PHP 5.1.2. |
| 172 |
* @link http://www.php.net/manual/en/xsl.constants.php |
| 173 |
*/ |
| 174 |
define ('LIBEXSLT_DOTTED_VERSION', "1.1.27"); |
| 175 |
|
| 176 |
// End of xsl v.0.1 |
| 177 |
?> |