class LinkAbstractor extends ConcreteObject (View source)

Properties

$error from ConcreteObject
static private $blackListImgAttributes Takes a chunk of content containing full urls and converts them to abstract link references.

Methods

loadError($error)

No description

isError()

No description

getError()

No description

setPropertiesFromArray($arr)

No description

static 
camelcase($file)

No description

static 
uncamelcase($string)

No description

static 
translateTo($text)

No description

static 
translateFrom($text)

Takes a chunk of content containing abstracted link references, and expands them to full urls for displaying on the site front-end.

static 
translateFromEditMode($text)

Takes a chunk of content containing abstracted link references, and expands them to urls suitable for the rich text editor.

static 
import($text)

For the content block's getImportData() function.

static 
export($text)

For the content block's export() function.

static string
replacePlaceholder(string $text, string $pattern, callable $resolver, bool $caseSensitive = false)

Replace a placeholder.

Details

loadError($error)

Parameters

$error

isError()

getError()

setPropertiesFromArray($arr)

Parameters

$arr

static camelcase($file)

Parameters

$file

static uncamelcase($string)

Parameters

$string

static translateTo($text)

Parameters

$text

static translateFrom($text)

Takes a chunk of content containing abstracted link references, and expands them to full urls for displaying on the site front-end.

Parameters

$text

static translateFromEditMode($text)

Takes a chunk of content containing abstracted link references, and expands them to urls suitable for the rich text editor.

Parameters

$text

static import($text)

For the content block's getImportData() function.

Parameters

$text

static export($text)

For the content block's export() function.

Parameters

$text

static protected string replacePlaceholder(string $text, string $pattern, callable $resolver, bool $caseSensitive = false)

Replace a placeholder.

Parameters

string $text the text that may contain placeholders to be replaced
string $pattern the regular expression (without enclosing '/') that captures the placeholder
callable $resolver a callback that replaces the captured placeholder value
bool $caseSensitive is $pattern case sensitive?

Return Value

string