/** * Automatically registers content types associated with plugins, * as long as they're called IdnoPlugins\PLUGIN-NAME\ContentType */ function registerContentTypes() { $namespace = $this->getNamespace(); if (class_exists($namespace . '\\ContentType')) { if (is_subclass_of($namespace . '\\ContentType', 'Idno\\Common\\ContentType')) { \Idno\Common\ContentType::register($namespace . '\\ContentType'); } } }
function registerContentTypes() { parent::registerContentTypes(); \Idno\Common\ContentType::register($this->getNamespace() . '\\RepliesContentType'); }
function registerContentTypes() { \Idno\Common\ContentType::register('\\IdnoPlugins\\Event\\ContentType'); \Idno\Common\ContentType::register('\\IdnoPlugins\\Event\\RSVPContentType'); }