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 string
translateTo($text)

No description

static string
translateFrom(mixed $text)

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

static string
translateFromEditMode(mixed $text)

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

static string
import(string $text)

For the content block's getImportData() function.

static string
export(mixed $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)

No description

Parameters

$error

isError()

No description

getError()

No description

setPropertiesFromArray($arr)

No description

Parameters

$arr

static camelcase($file)

No description

Parameters

$file

static uncamelcase($string)

No description

Parameters

$string

static string translateTo($text)

No description

Parameters

$text

Return Value

string

static string translateFrom(mixed $text)

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

Parameters

mixed $text

Return Value

string

static string translateFromEditMode(mixed $text)

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

Parameters

mixed $text

Return Value

string

static string import(string $text)

For the content block's getImportData() function.

Parameters

string $text

Return Value

string

static string export(mixed $text)

For the content block's export() function.

Parameters

mixed $text

Return Value

string

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

Since: concrete5 8.5.0a3

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