// check to see if the parameter 'skipTables' was provided $skipTables = isset($_REQUEST['skipTables']); // if NOT then reset the tables... if (!$skipTables) { /* * NavBarGroup Table * * Divides the NavBar into seperate Groups. Links on the NavBar are under these groups. * * navbargroup_id [INTEGER] Primary Key for this table * navbargroup_nameKey [STRING] The multilingual lookup key to retrieve the group name. '[group_[nameKey]]' * navbargroup_order [INTEGER] defines the order in which the groups are to be displayed on the Nav Bar. */ $NavBarGroup = new RowManager_NavBarGroupManager(); $NavBarGroup->dropTable(); $NavBarGroup->createTable(); // NavBarGroup is a RowLabelBridge, so we must use that to create the initial // entries: $seriesKey = moduleNavBar::MULTILINGUAL_SERIES_KEY; $pageKey = RowManager_NavBarGroupManager::XML_NODE_NAME; $multiLingualContext = new MultilingualManager(1, $seriesKey, $pageKey); $group = $NavBarGroup->getRowLabelBridge($multiLingualContext); $values = array(); $values['label_label'] = 'Admin'; $group->loadFromArray($values); $group->createNewEntry(); /* * NavBarLinks Table * * Manages the actual links on the NavBar *