Somewhat complicated preview system which copies existing data into temporary tables, then renders the preview via a front-end method call
This is the code documentation for the SproutCMS project
Search documentation |
class PreviewSomewhat complicated preview system which copies existing data into temporary tables, then renders the preview via a front-end method call
Functions
public loadint Preview::load ( ManagedAdminController $ctlr , array $tables [, int $record_id ] ); Loads a preview by creating temporary tables in SQL, calling a controller's _editSave method, and then calling a method it would normally use to display its (non-temporary) data public runvoid Preview::run ( Controller $ctlr , string $method , array $args ); Run a controller method using the preview data. This injects the word 'PREVIEW' into the page title |
| 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 |
|