SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class AttrEditorFilename

Specialised file selector input field for page attributes

Functions

NameVisibilityDescription
javascriptpublicIf you have any custom javascript to run, return it using this method.
needspublicIf your class has script needs, load them in here.
renderpublicReturn HTML for editing the attribute.

public javascript

unknown $AttrEditorFilename->javascript ( mixed $val , mixed $attr_name );

If you have any custom javascript to run, return it using this method.

When your script runs, take a look at the $outer variable.

public needs

void $AttrEditorFilename->needs ( );

If your class has script needs, load them in here.
This is run on page load, not on ajax request.

public render

unknown $AttrEditorFilename->render ( string $val , string $attr_name );

Return HTML for editing the attribute.
Your attribute needs to return HTML for a single input element.
The field name for the element needs to be 'value'.