Webylon 3.2 API Docs
  • Package
  • Class
  • Tree
  • Deprecated
  • Download
Version: current
  • 3.2
  • 3.1

Packages

  • 1c
    • exchange
      • catalog
  • auth
  • Booking
  • building
    • company
  • cart
    • shipping
    • steppedcheckout
  • Catalog
    • monument
  • cms
    • assets
    • batchaction
    • batchactions
    • bulkloading
    • comments
    • content
    • core
    • export
    • newsletter
    • publishers
    • reports
    • security
    • tasks
  • Dashboard
  • DataObjectManager
  • event
  • faq
  • forms
    • actions
    • core
    • fields-basic
    • fields-dataless
    • fields-datetime
    • fields-files
    • fields-formatted
    • fields-formattedinput
    • fields-relational
    • fields-structural
    • transformations
    • validators
  • googlesitemaps
  • guestbook
  • installer
  • newsletter
  • None
  • photo
    • gallery
  • PHP
  • polls
  • recaptcha
  • sapphire
    • api
    • bulkloading
    • control
    • core
    • cron
    • dev
    • email
    • fields-formattedinput
    • filesystem
    • formatters
    • forms
    • i18n
    • integration
    • misc
    • model
    • parsers
    • search
    • security
    • tasks
    • testing
    • tools
    • validation
    • view
    • widgets
  • seo
    • open
      • graph
  • sfDateTimePlugin
  • spamprotection
  • stealth
    • captha
  • subsites
  • userform
    • pagetypes
  • userforms
  • webylon
  • widgets

Classes

  • _DiffEngine
  • _DiffOp
  • _DiffOp_Add
  • _DiffOp_Change
  • _DiffOp_Copy
  • _DiffOp_Delete
  • BookingOrderAdmin
  • BookingOrderAdmin_CollectionController
  • CatalogAdmin_CollectionController
  • CatalogAdmin_RecordController
  • CMSActionOptionsForm
  • Diff
  • GuestbookAdmin_CollectionController
  • ImportCatalog1C_ProductProp_Admin
  • LeftAndMain
  • LeftAndMainDecorator
  • LoggerAdmin_CollectionController
  • LoggerAdmin_RecordController
  • MappedDiff
  • ModelAdmin
  • ModelAdmin_CollectionController
  • ModelAdmin_RecordController
  • MonumentAdmin
  • OrderAdmin_CollectionController
  • OrderAdmin_RecordController
  • PaymentAdmin
  • PaymentAdmin_CollectionController
  • ProductImport1CAdmin
  • ProductImport1CAdmin_CollectionController
  • ProductImportAdmin
  • ProductImportAdmin_CollectionController
  • RealtyImportAdmin
  • RealtyImportAdmin_CollectionController
  • RedirectEntry_Admin
  • RoomServiceAdmin
  • ShippingMethodAdmin_CollectionController
  • SubsiteAdmin_CollectionController
  • VAT_Admin
  • VKNotificationQueueAdmin

Class Diff

Class representing a 'diff' between two sequences of strings.

Direct known subclasses

MappedDiff

Package: cms\core
Located at cms/code/Diff.php

Methods summary

public
# Diff( mixed $from_lines, mixed $to_lines )

Constructor. Computes diff between sequences of strings.

Constructor. Computes diff between sequences of strings.

Parameters

$from_lines
$from_lines array An array of strings. (Typically these are lines from a file.)
$to_lines
$to_lines array An array of strings.
public object
# reverse( )

Compute reversed Diff.

Compute reversed Diff.

SYNOPSIS:
$diff = new Diff($lines1, $lines2); $rev = $diff->reverse();

Returns

object
A Diff object representing the inverse of the original diff.
public boolean
# isEmpty( )

Check for empty diff.

Check for empty diff.

Returns

boolean
True iff two sequences were identical.
public integer
# lcs( )

Compute the length of the Longest Common Subsequence (LCS).

Compute the length of the Longest Common Subsequence (LCS).

This is mostly for diagnostic purposed.

Returns

integer
The length of the LCS.
public array
# orig( )

Get the original set of lines.

Get the original set of lines.

This reconstructs the $from_lines parameter passed to the constructor.

Returns

array
The original sequence of strings.
public array
# finaltext( )

Get the final set of lines.

Get the final set of lines.

This reconstructs the $to_lines parameter passed to the constructor.

Returns

array
The sequence of strings.
public
# _check( mixed $from_lines, mixed $to_lines )

Check a Diff for validity.

Check a Diff for validity.

This is here only for debugging purposes.

public static
# cleanHTML( string $content, object $cleaner = null )

Attempt to clean invalid HTML, which messes up diffs.
This cleans code if possible, using an instance of HTMLCleaner

Attempt to clean invalid HTML, which messes up diffs. This cleans code if possible, using an instance of HTMLCleaner

NB: By default, only extremely simple tidying is performed, by passing through DomDocument::loadHTML and saveXML

Parameters

$content
string $content HTML content
$cleaner
object $cleaner Optional instance of a HTMLCleaner class to use, overriding self::$html_cleaner_class
public static
# compareHTML( mixed $from, mixed $to )
public static
# getHTMLChunks( mixed $content )

Magic methods summary

Properties summary

public static mixed $html_cleaner_class
#
public mixed $edits
#
[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -
Webylon 3.2 API Docs API documentation generated by ApiGen 2.8.0