Пример #1
0
 protected function __construct()
 {
     parent::__construct();
     $this->contenttypeid = vB_Types::instance()->getContentTypeId($this->contenttype);
     //The table for the type-specific data.
     $this->assertor = vB::getDbAssertor();
     $this->nodeApi = vB_Api::instanceInternal('node');
     $this->nodeLibrary = vB_Library::instance('node');
     $this->nodeFields = $this->nodeApi->getNodeFields();
     $this->options = vB::getDatastore()->getValue('options');
     $this->channelTypeId = vB_Types::instance()->getContentTypeID('vBForum_Channel');
     $config = vB::getConfig();
     $structure = $this->assertor->fetchTableStructure('vBForum:node');
     foreach ($structure['structure'] as $fieldName) {
         $this->allCanview[$fieldName] = $fieldName;
     }
     $structure = $this->assertor->fetchTableStructure('vBForum:channel');
     foreach ($structure['structure'] as $fieldName) {
         $this->allCanview[$fieldName] = $fieldName;
     }
     self::$cacheNodes = vB::getDatastore()->getOption('cache_node_data');
 }