SproutCMS

This is the code documentation for the SproutCMS project

class AdminAjaxController

Handles processing of various admin AJAX methods including: widget settings; links; and categories.

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2026-09-15
**/
class NewClassName extends AdminAjaxController {
    
    /**
    * Adds a category
    **/
    public function addCategory () {
        // Method code goes here
    }
    
    /**
    * Load an attribute editor for a given field
    **/
    public function attrEditor () {
        // Method code goes here
    }
    
    /**
    * Load an attribute editor for a given field
    **/
    public function lnkEditor () {
        // Method code goes here
    }
    
    /**
    * Set a given JavaScript tour as complete, preventing it from showing again.
    **/
    public function setTourCompleted ($tour_name) {
        // Method code goes here
    }
    
    /**
    * Called by button handlers on the two RTEs and loaded in a facebox window
    * Shows an interface to load stuff into the editor
    * The editor id will br provided in $elemid
    **/
    public function richtextImport ($elemid) {
        // Method code goes here
    }
    
    /**
    * Handle an upload of a document. Echos DIV-warapped JSON with the result of the import.
    * 
    * Keys include:
    *    'html'    The imported HTML of the document
    **/
    public function richtextImportIframe () {
        // Method code goes here
    }
    
    /**
    * Demo AJAX JSON callback url for {@see Fb::conditionsList}
    * 
    * Input is GET params 'field', 'op', 'val'
    * 
    * Output is JSON with two keys, 'op' and 'val'. They are both
    * HTML strings containing {@see Form} fields for the operator
    * dropdown and the values dropdown/textbox
    **/
    public function styleGuideDemoConditions () {
        // Method code goes here
    }
    
    /**
    * Popup for adding an addon
    **/
    public function addAddon ($area_id, $field_name) {
        // Method code goes here
    }
    
    public function footerCompat () {
        // Method code goes here
    }
    
    public function getTagSuggestions ($table) {
        // Method code goes here
    }
    
    public function getEntranceArguments ($class) {
        // Method code goes here
    }
    
    /**
    * AJAX-loaded popup content for UI to manage widget display conditions
    **/
    public function widgetDispConds () {
        // Method code goes here
    }
    
    /**
    * Callback url for {@see Fb::conditionsList} for the widget display conditions
    * 
    * Input is GET params 'field', 'op', 'val'
    * 
    * Output is JSON with two keys, 'op' and 'val'. They are both
    * HTML strings containing {@see Form} fields for the operator
    * dropdown and the values dropdown/textbox
    **/
    public function widgetDispCondParams () {
        // Method code goes here
    }
    
    /**
    * Constructor
    **/
    public function __construct () {
        // Method code goes here
    }
    
    /**
    * Returns the HTML for the settings for an individual widget.
    **/
    public function widgetSettings (string $widget_name) {
        // Method code goes here
    }
    
}
?>