No description yet.
This is the code documentation for the SproutCMS project
Search documentation |
class ContentReplaceNo description yet.
Variables
Functions
private _emailWidgetsunknown ContentReplace::_emailWidgets ( mixed $matches ); This function does not have a description private _emptyTablesunknown ContentReplace::_emptyTables ( mixed $matches ); This function does not have a description private _intlinksunknown ContentReplace::_intlinks ( mixed $matches ); This function does not have a description public dbFieldsunknown ContentReplace::dbFields ( mixed $text , string $data ); Replace database fields with database values Replacement code is in the format ((REPLACE field_name)) public documentLinksunknown ContentReplace::documentLinks ( mixed $html ); Use Sprout::specialFileLinks instead, it's got better unit tests etc. public emailWidgetsunknown ContentReplace::emailWidgets ( mixed $text , string $widget_table , string $widget_record , mixed $pre_html , mixed $post_html ); 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 embedWidgetstring ContentReplace::embedWidget ( string $text , string $pattern , array $widget ); Embeds a widget into some text public embedWidgetsstring ContentReplace::embedWidgets ( string $text , string $widget_table , int $widget_record ); Replace embed code with the actual widgets. Embed code is in the format ((WIDGET code)) public emptyTablesunknown ContentReplace::emptyTables ( mixed $text ); Remove tables that don't contain any content public executeChainunknown ContentReplace::executeChain ( string $chain , string $html ); Execute a content replace chain public expandolinkunknown ContentReplace::expandolink ( string $html [, string $url ] ); 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 fileDownloadstring ContentReplace::fileDownload ( string $html ); Replace file URLs that refer to IDs with URLs which refer to filenames public htmlstring ContentReplace::html ( string $html ); Do all the replacements normally required for HTML content Internal links, inline addons, the local anchor fix, etc. public intlinksunknown ContentReplace::intlinks ( mixed $text ); Replace links to internal pages in the format page/view_by_id/... with the page's friendly url public localAnchorunknown ContentReplace::localAnchor ( mixed $text ); Replace anchors without a URL (e.g. href="#top") to include the page URL to fix issues with BASE HREF public lookupWidgetsarray ContentReplace::lookupWidgets ( string $widget_table , int $widget_record , array $embed_keys ); This function does not have a description public preloadWidgetsvoid ContentReplace::preloadWidgets ( array $widgets , array $settings ); Add some preloaded widgets, e.g. generated by a preview public removeWidgetsunknown ContentReplace::removeWidgets ( mixed $text ); Remove widget embed code from the specified HTML Embed code is in the format ((WIDGET code)) |
| 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 |
|