Changeset 93103 in spip-zone


Ignore:
Timestamp:
Nov 23, 2015, 12:16:41 PM (5 years ago)
Author:
marcimat@…
Message:

Compat PHP7 lib HTML Sax

Location:
_core_/plugins/safehtml/lib/safehtml/classes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/safehtml/lib/safehtml/classes/HTMLSax3.php

    r93092 r93103  
    4545 var $State = array();
    4646
    47  function XML_HTMLSax3_StateParser (& $htmlsax) {
     47 function __construct(& $htmlsax) {
    4848  $this->htmlsax = & $htmlsax;
    4949
     
    154154
    155155class XML_HTMLSax3_StateParser_Lt430 extends XML_HTMLSax3_StateParser {
    156  function XML_HTMLSax3_StateParser_Lt430(& $htmlsax) {
     156 function __construct(& $htmlsax) {
    157157  parent::XML_HTMLSax3_StateParser($htmlsax);
    158158  $this->parser_options['XML_OPTION_TRIM_DATA_NODES'] = 0;
     
    186186
    187187class XML_HTMLSax3_StateParser_Gtet430 extends XML_HTMLSax3_StateParser {
    188  function XML_HTMLSax3_StateParser_Gtet430(& $htmlsax) {
     188 function __construct(& $htmlsax) {
    189189  parent::XML_HTMLSax3_StateParser($htmlsax);
    190190  $this->parser_options['XML_OPTION_TRIM_DATA_NODES'] = 0;
     
    220220 var $state_parser;
    221221
    222  function XML_HTMLSax3() {
     222 function __construct() {
    223223  if (version_compare(phpversion(), '4.3', 'ge')) {
    224224   $this->state_parser = new XML_HTMLSax3_StateParser_Gtet430($this);
  • _core_/plugins/safehtml/lib/safehtml/classes/HTMLSax3/Decorators.php

    r93092 r93103  
    33 var $orig_obj;
    44 var $orig_method;
    5  function XML_HTMLSax3_Trim(&$orig_obj, $orig_method) {
     5 function __construct(&$orig_obj, $orig_method) {
    66  $this->orig_obj =& $orig_obj;
    77  $this->orig_method = $orig_method;
     
    1818 var $orig_open_method;
    1919 var $orig_close_method;
    20  function XML_HTMLSax3_CaseFolding(&$orig_obj, $orig_open_method, $orig_close_method) {
     20 function __construct(&$orig_obj, $orig_open_method, $orig_close_method) {
    2121  $this->orig_obj =& $orig_obj;
    2222  $this->orig_open_method = $orig_open_method;
     
    3333 var $orig_obj;
    3434 var $orig_method;
    35  function XML_HTMLSax3_LineFeed(&$orig_obj, $orig_method) {
     35 function __construct(&$orig_obj, $orig_method) {
    3636  $this->orig_obj =& $orig_obj;
    3737  $this->orig_method = $orig_method;
     
    4747 var $orig_obj;
    4848 var $orig_method;
    49  function XML_HTMLSax3_Tab(&$orig_obj, $orig_method) {
     49 function __construct(&$orig_obj, $orig_method) {
    5050  $this->orig_obj =& $orig_obj;
    5151  $this->orig_method = $orig_method;
     
    6161 var $orig_obj;
    6262 var $orig_method;
    63  function XML_HTMLSax3_Entities_Parsed(&$orig_obj, $orig_method) {
     63 function __construct(&$orig_obj, $orig_method) {
    6464  $this->orig_obj =& $orig_obj;
    6565  $this->orig_method = $orig_method;
     
    8282 var $orig_obj;
    8383 var $orig_method;
    84  function XML_HTMLSax3_Entities_Unparsed(&$orig_obj, $orig_method) {
     84 function __construct(&$orig_obj, $orig_method) {
    8585  $this->orig_obj =& $orig_obj;
    8686  $this->orig_method = $orig_method;
     
    9797 var $orig_obj;
    9898 var $orig_method;
    99  function XML_HTMLSax3_Escape_Stripper(&$orig_obj, $orig_method) {
     99 function __construct(&$orig_obj, $orig_method) {
    100100  $this->orig_obj =& $orig_obj;
    101101  $this->orig_method = $orig_method;
Note: See TracChangeset for help on using the changeset viewer.