pstaender/silverstripe-helper

Collection of string manipulation and controller helpers

Installs: 53

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

0.0.1 2018-04-22 17:44 UTC

This package is auto-updated.

Last update: 2024-11-19 10:18:16 UTC


README

<?php
class DBStringExtension extends SilverStripe\ORM\DataExtension {

	private static $casting = [
	  "Markdown"               => "HTMLFragment",
	  "MarkdownLine"           => "HTMLFragment",
	];

	use PhilippStaender\SilverStripeHelper\Markdown;

}
<?php
\SilverStripe\ORM\FieldType\DBString::add_extension(DBStringExtension::class);