Project

General

Profile

Actions

Feature proposal #3698

closed

API: Add function to CBTxt to trigger CMS content bots

Added by beat over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
30 September 2012
Due date:
% Done:

100%

Estimated time:
0:12 h

Description

    /**
     * Prepares the HTML $htmlText with triggering CMS Content Plugins if $allowed, otherwise keeps as is
     * @since 1.9
     *
     * @param  string   $htmlText
     * @param  boolean  $allowed
     * @return string
     */
    public static function prepareHtmlContentPlugins( $htmlText, $allowed = true );

    /**
     * Translates, prepares the HTML $htmlText with triggering CMS Content Plugins, replaces CB substitutions and extra HTML and non-HTML substitutions
     *
     * @param  string      $mainText
     * @param  int         $user_id
     * @param  boolean     $html
     * @param  boolean     $translateMainText
     * @param  boolean     $prepareHtmlContentPlugins
     * @param  array|null  $extraHtmlStrings
     * @param  array|null  $extraNonHtmlStrings
     * @return string
     */
    public static function replaceUserVars( $mainText, $user_id, $html, $translateMainText = true, $prepareHtmlContentPlugins = false, $extraHtmlStrings = null, $extraNonHtmlStrings = null );
Actions #1

Updated by beat over 11 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

r1851 Implemented this Feature.

Actions

Also available in: Atom PDF