ConversationsHooks::setup PHP Метод

setup() публичный Метод

Database & config changes to be done upon enable.
С версии: 2.0.0
public setup ( )
    public function setup()
    {
        $Database = Gdn::database();
        $Config = Gdn::factory(Gdn::AliasConfig);
        $Drop = false;
        $Validation = new Gdn_Validation();
        // This is going to be needed by structure.php to validate permission names
        include PATH_APPLICATIONS . DS . 'conversations' . DS . 'settings' . DS . 'structure.php';
        include PATH_APPLICATIONS . DS . 'conversations' . DS . 'settings' . DS . 'stub.php';
        $ApplicationInfo = array();
        include combinePaths(array(PATH_APPLICATIONS . DS . 'conversations' . DS . 'settings' . DS . 'about.php'));
        $Version = val('Version', val('Conversations', $ApplicationInfo, array()), 'Undefined');
        saveToConfig('Conversations.Version', $Version);
    }