\TkiMultiViewsExtension
Synopsis
class TkiMultiViewsExtension
extends DataExtension
{
- // members
- private static array $db = ;
- private static array $views = ;
- private static $default_view;
- private static string $view_option_template = 'TkiMultiViewsGridViewOption';
- protected $multiView;
- // methods
- public array getAvailableViews()
- public string getDefaultView()
- public string getViewOptionTemplate()
- public void setViewData()
- public TkiViewInterface getSelectedView()
- public TkiViewInterface getMultiView()
- protected TkiViewInterface initView()
- public void updateCMSFields()
- public void onBeforeWrite()
- public type ViewClass()
- public int getMaxWidth()
- public int getMaxHeight()
Hierarchy
Extends
- DataExtension
Members
private
- $db — array
- $default_view
—
string
Default view class - $view_option_template
—
string
Template include name used for rendering each template option - $views
—
array
Different views available for user selection.
protected
- $multiView
—
array
Instance cache of multi view object
Methods
protected
- initView() — Instantiate and prepare view
public
- ViewClass() — View name for use in template
- getAvailableViews() — Get $views configured for the class - uninherited
- getDefaultView() — Get $default_view configured for the class (should not inherit value)
- getMaxHeight() — Gets the max height configured or calculated (pixels)
- getMaxWidth() — Gets the max width configured or calculated (pixels)
- getMultiView() — Gets selected view or default view
- getSelectedView() — Gets selected view for rendering
- getViewOptionTemplate() — Get view option template
- onBeforeWrite()
- setViewData() — Sets data on view Override in owner class to set view data
- updateCMSFields()