\SiteMediaRegistry
Synopsis
class SiteMediaRegistry
{
- // members
- public static array $decorated_classes = ;
- public static array $allowed_types_by_class = ;
- public static array $media_types = ;
Members
public
- $allowed_types_by_class
- $decorated_classes
- $media_types
Methods
public
- add_type() — SiteMediaRegistry::add_type('SiteYouTubeVideo');
- decorate() — SiteMediaRegistry::decorate('NewsStory', array('SitePhoto'), true) // News Stories will have SitePhotos appear in the Media Tab, and will be able // to use photos that were added to another NewsStory
- init() — Call **after** all decorations + type registrations