Пример #1
0
 /**
  * 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');
         }
     }
 }
Пример #2
0
 function registerContentTypes()
 {
     parent::registerContentTypes();
     \Idno\Common\ContentType::register($this->getNamespace() . '\\RepliesContentType');
 }
Пример #3
0
 function registerContentTypes()
 {
     \Idno\Common\ContentType::register('\\IdnoPlugins\\Event\\ContentType');
     \Idno\Common\ContentType::register('\\IdnoPlugins\\Event\\RSVPContentType');
 }