Commit a9ef1ecf authored by Nigel McNie's avatar Nigel McNie
Browse files

Changed the signature of the get_icon method - it now takes the ID of the...

Changed the signature of the get_icon method - it now takes the ID of the artefact to render, which makes generating little thumbnails of images possible
parent 84a9ad02
......@@ -427,12 +427,11 @@ abstract class ArtefactType {
/**
* returns path to icon
* can be called statically but not defined so
* so that can be either from instance or static.
* @param int $id The ID of the artefact to render
* @abstract
* @return string path to icon (relative to docroot)
*/
public abstract function get_icon();
public static abstract function get_icon($id=0);
// ******************** STATIC FUNCTIONS ******************** //
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment