SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class FileListWidget

doc list widget

Variables

NameVisibilityDescription
$default_settings 
$friendly_desc 
$friendly_name 
$heading
Optional HTML H2 heading that's rendered on front-end view
$settings
Settings - These get automatically set in the admin and loaded on the front-end

Functions

NameVisibilityDescription
cleanupSettingspublicRun after import of settings, allows extending widgets to clean up settings which may
getDefaultSettingspublicReturns the default settings for the widget
getEditUrlpublicReturns a URL for editing the contents of this widget
getFriendlyDescpublicGets the english name of this widget
getFriendlyNamepublicGets the english name of this widget
getInfoLabelspublicReturns a label which describes the contents of this widget
getNotAvailableReasonpublicIs there sufficent content to add this addon at the moment?
getOrderSqlprivateReturns the SQL which should be used for ordering the articles
getSettingspublicReturn the currently loaded settings for the widget
getSettingsFormpublicReturns the settings for the doc list widget
getTitlepublicReturns the title to use for the widget - should not contain HTML
importSettingspublicImports the settings
renderpublicReturns the output of the doc list widget
setTitlepublicSet widget title

public cleanupSettings (from Widget)

void $Widget->cleanupSettings ( );

Run after import of settings, allows extending widgets to clean up settings which may
have bad values for some reason

public getDefaultSettings (from Widget)

unknown $Widget->getDefaultSettings ( );

Returns the default settings for the widget

public getEditUrl

unknown $FileListWidget->getEditUrl ( );

Returns a URL for editing the contents of this widget
See Widget::getEditUrl for full documentation

public getFriendlyDesc (from Widget)

unknown $Widget->getFriendlyDesc ( );

Gets the english name of this widget

public getFriendlyName (from Widget)

unknown $Widget->getFriendlyName ( );

Gets the english name of this widget

public getInfoLabels

unknown $FileListWidget->getInfoLabels ( );

Returns a label which describes the contents of this widget
See Widget::get_info_label for full documentation

public getNotAvailableReason (from Widget)

unknown $Widget->getNotAvailableReason ( );

Is there sufficent content to add this addon at the moment?
If this widget is not available, a string message should be returned
If this widget *is* available, NULL should be returned.

private getOrderSql

unknown $FileListWidget->getOrderSql ( );

Returns the SQL which should be used for ordering the articles

public getSettings (from Widget)

array $Widget->getSettings ( );

Return the currently loaded settings for the widget

public getSettingsForm

unknown $FileListWidget->getSettingsForm ( );

Returns the settings for the doc list widget
See Widget::getSettingsForm for full documentation

public getTitle (from Widget)

unknown $Widget->getTitle ( );

Returns the title to use for the widget - should not contain HTML

public importSettings (from Widget)

void $Widget->importSettings ( array $settings );

Imports the settings

public render

unknown $FileListWidget->render ( int $orientation );

Returns the output of the doc list widget
See Widget::render for full documentation

public setTitle (from Widget)

void $Widget->setTitle ( string $str );

Set widget title