No description yet.
This is the code documentation for the SproutCMS project
Search documentation |
class ContentReplaceNo description yet.
Extending this class<?php
/**
* New class description goes here
*
* @author Your Name, 2026-09-16
**/
class NewClassName extends ContentReplace {
private function _emailWidgets ($matches) {
// Method code goes here
}
/**
* Replace database fields with database values
*
* Replacement code is in the format ((REPLACE field_name))
**/
public function dbFields ($text, string $data) {
// Method code goes here
}
/**
* Remove tables that don't contain any content
**/
public function emptyTables ($text) {
// Method code goes here
}
private function _emptyTables ($matches) {
// Method code goes here
}
/**
* Replaces an expando with a link to the specified URL
*
* This method might not preserve whitespace in the input html.
* The link is only appended if the content actually contained expandos.
* The lunk url is optional. If not provided, no link gets appended.
**/
public function expandolink (string $html, string $url) {
// Method code goes here
}
/**
* Replace anchors without a URL (e.g. href="#top") to include the page URL to fix issues with BASE HREF
**/
public function localAnchor ($text) {
// Method code goes here
}
/**
* Use Sprout::specialFileLinks instead, it's got better unit tests etc.
**/
public function documentLinks ($html) {
// Method code goes here
}
/**
* Replace file URLs that refer to IDs with URLs which refer to filenames
**/
public function fileDownload (string $html) {
// Method code goes here
}
public function lookupWidgets (string $widget_table, int $widget_record, array $embed_keys) {
// Method code goes here
}
/**
* Embeds a widget into some text
**/
public function embedWidget (string $text, string $pattern, array $widget) {
// Method code goes here
}
/**
* Remove widget embed code from the specified HTML
* Embed code is in the format ((WIDGET code))
**/
public function removeWidgets ($text) {
// Method code goes here
}
/**
* Replace embed code with the actual widget. This is a tweaked version of embedWidgets, designed for email
*
* Embed code is in the format ((WIDGET code))
**/
public function emailWidgets ($text, string $widget_table, string $widget_record, $pre_html, $post_html) {
// Method code goes here
}
/**
* Execute a content replace chain
**/
public function executeChain (string $chain, string $html) {
// Method code goes here
}
/**
* Do all the replacements normally required for HTML content
* Internal links, inline addons, the local anchor fix, etc.
**/
public function html (string $html) {
// Method code goes here
}
/**
* Replace links to internal pages in the format page/view_by_id/... with the page's friendly url
**/
public function intlinks ($text) {
// Method code goes here
}
private function _intlinks ($matches) {
// Method code goes here
}
/**
* Add some preloaded widgets, e.g. generated by a preview
**/
public function preloadWidgets (array $widgets, array $settings) {
// Method code goes here
}
/**
* Replace embed code with the actual widgets.
*
* Embed code is in the format ((WIDGET code))
**/
public function embedWidgets (string $text, string $widget_table, int $widget_record) {
// Method code goes here
}
}
?>
|
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|