Changeset 32990 for trunk/src/wp-includes/Text/Diff.php
- Timestamp:
- 06/28/2015 03:26:41 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/Text/Diff.php (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/Text/Diff.php
r24363 r32990 34 34 * containing the lines from a file. 35 35 */ 36 function Text_Diff($engine, $params)36 function __construct( $engine, $params ) 37 37 { 38 38 // Backward compatibility workaround. … … 55 55 $this->_edits = call_user_func_array(array($diff_engine, 'diff'), $params); 56 56 } 57 58 /** 59 * PHP4 constructor. 60 */ 61 public function Text_Diff( $engine, $params ) { 62 self::__construct( $engine, $params ); 63 } 57 64 58 65 /** … … 305 312 * of elements as $to_lines. 306 313 */ 307 function Text_MappedDiff($from_lines, $to_lines,314 function __construct($from_lines, $to_lines, 308 315 $mapped_from_lines, $mapped_to_lines) 309 316 { … … 329 336 } 330 337 338 /** 339 * PHP4 constructor. 340 */ 341 public function Text_MappedDiff( $from_lines, $to_lines, 342 $mapped_from_lines, $mapped_to_lines ) { 343 self::__construct( $from_lines, $to_lines, 344 $mapped_from_lines, $mapped_to_lines ); 345 } 346 331 347 } 332 348 … … 367 383 class Text_Diff_Op_copy extends Text_Diff_Op { 368 384 369 function Text_Diff_Op_copy($orig, $final = false) 385 /** 386 * PHP5 constructor. 387 */ 388 function __construct( $orig, $final = false ) 370 389 { 371 390 if (!is_array($final)) { … … 376 395 } 377 396 397 /** 398 * PHP4 constructor. 399 */ 400 public function Text_Diff_Op_copy( $orig, $final = false ) { 401 self::__construct( $orig, $final ); 402 } 403 378 404 function &reverse() 379 405 { … … 392 418 class Text_Diff_Op_delete extends Text_Diff_Op { 393 419 394 function Text_Diff_Op_delete($lines) 420 /** 421 * PHP5 constructor. 422 */ 423 function __construct( $lines ) 395 424 { 396 425 $this->orig = $lines; … … 398 427 } 399 428 429 /** 430 * PHP4 constructor. 431 */ 432 public function Text_Diff_Op_delete( $lines ) { 433 self::__construct( $lines ); 434 } 435 400 436 function &reverse() 401 437 { … … 414 450 class Text_Diff_Op_add extends Text_Diff_Op { 415 451 416 function Text_Diff_Op_add($lines) 452 /** 453 * PHP5 constructor. 454 */ 455 function __construct( $lines ) 417 456 { 418 457 $this->final = $lines; … … 420 459 } 421 460 461 /** 462 * PHP4 constructor. 463 */ 464 public function Text_Diff_Op_add( $lines ) { 465 self::__construct( $lines ); 466 } 467 422 468 function &reverse() 423 469 { … … 436 482 class Text_Diff_Op_change extends Text_Diff_Op { 437 483 438 function Text_Diff_Op_change($orig, $final) 484 /** 485 * PHP5 constructor. 486 */ 487 function __construct( $orig, $final ) 439 488 { 440 489 $this->orig = $orig; … … 442 491 } 443 492 493 /** 494 * PHP4 constructor. 495 */ 496 public function Text_Diff_Op_change( $orig, $final ) { 497 self::__construct( $orig, $final ); 498 } 499 444 500 function &reverse() 445 501 {
Note: See TracChangeset
for help on using the changeset viewer.