LinkAbstractor
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
No description
Takes a chunk of content containing abstracted link references, and expands them to full urls for displaying on the site front-end.
Takes a chunk of content containing abstracted link references, and expands them to urls suitable for the rich text editor.
For the content block's getImportData() function.
For the content block's export() function.
Replace a placeholder.
Details
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 protected string
replacePlaceholder(string $text, string $pattern, callable $resolver, bool $caseSensitive = false)
Replace a placeholder.