/**
  * Adds links to Admin Links page.
  *
  * @since 1.7
  *
  * @param ALTree $admin_links_tree
  *
  * @return boolean
  */
 public static function addToAdminLinks(ALTree &$admin_links_tree)
 {
     $data_structure_section = new ALSection(wfMessage('smw_adminlinks_datastructure')->text());
     $smw_row = new ALRow('smw');
     $smw_row->addItem(ALItem::newFromSpecialPage('Categories'));
     $smw_row->addItem(ALItem::newFromSpecialPage('Properties'));
     $smw_row->addItem(ALItem::newFromSpecialPage('UnusedProperties'));
     $smw_row->addItem(ALItem::newFromSpecialPage('SemanticStatistics'));
     $data_structure_section->addRow($smw_row);
     $smw_admin_row = new ALRow('smw_admin');
     $smw_admin_row->addItem(ALItem::newFromSpecialPage('SMWAdmin'));
     $data_structure_section->addRow($smw_admin_row);
     $smw_docu_row = new ALRow('smw_docu');
     $smw_name = wfMessage('specialpages-group-smw_group')->text();
     $smw_docu_label = wfMessage('adminlinks_documentation', $smw_name)->text();
     $smw_docu_row->addItem(AlItem::newFromExternalLink('http://semantic-mediawiki.org/wiki/Help:User_manual', $smw_docu_label));
     $data_structure_section->addRow($smw_docu_row);
     $admin_links_tree->addSection($data_structure_section, wfMessage('adminlinks_browsesearch')->text());
     $smw_row = new ALRow('smw');
     $displaying_data_section = new ALSection(wfMessage('smw_adminlinks_displayingdata')->text());
     $smw_row->addItem(AlItem::newFromExternalLink('http://semantic-mediawiki.org/wiki/Help:Inline_queries', wfMessage('smw_adminlinks_inlinequerieshelp')->text()));
     $displaying_data_section->addRow($smw_row);
     $admin_links_tree->addSection($displaying_data_section, wfMessage('adminlinks_browsesearch')->text());
     $browse_search_section = $admin_links_tree->getSection(wfMessage('adminlinks_browsesearch')->text());
     $smw_row = new ALRow('smw');
     $smw_row->addItem(ALItem::newFromSpecialPage('Browse'));
     $smw_row->addItem(ALItem::newFromSpecialPage('Ask'));
     $smw_row->addItem(ALItem::newFromSpecialPage('SearchByProperty'));
     $browse_search_section->addRow($smw_row);
     return true;
 }
 /**
  * Adds a link to Admin Links page.
  *
  * @since 1.7
  *
  * @param ALTree $admin_links_tree
  *
  * @return boolean
  */
 public static function addToAdminLinks(ALTree &$admin_links_tree)
 {
     $displaying_data_section = $admin_links_tree->getSection(wfMessage('smw_adminlinks_displayingdata')->text());
     // Escape is SMW hasn't added links.
     if (is_null($displaying_data_section)) {
         return true;
     }
     $smw_docu_row = $displaying_data_section->getRow('smw');
     $srf_docu_label = wfMessage('adminlinks_documentation', wfMessage('srf-name')->text())->text();
     $smw_docu_row->addItem(AlItem::newFromExternalLink('https://www.mediawiki.org/wiki/Extension:Semantic_Result_Formats', $srf_docu_label));
     return true;
 }
Example #3
0
 /**
  * Adds a link to Admin Links page.
  *
  * @since 0.7
  *
  * @param ALTree $admin_links_tree
  *
  * @return boolean
  */
 public static function addToAdminLinks(ALTree &$admin_links_tree)
 {
     $displaying_data_section = $admin_links_tree->getSection(wfMessage('smw_adminlinks_displayingdata')->text());
     // Escape if SMW hasn't added links.
     if (is_null($displaying_data_section)) {
         return true;
     }
     $smw_docu_row = $displaying_data_section->getRow('smw');
     $sm_docu_label = wfMessage('adminlinks_documentation', 'Semantic Maps')->text();
     $smw_docu_row->addItem(AlItem::newFromExternalLink('http://mapping.referata.com/wiki/Semantic_Maps', $sm_docu_label));
     return true;
 }
 function createInitialTree()
 {
     $tree = new ALTree();
     // 'general' section
     $general_section = new ALSection($this->msg('adminlinks_general')->text());
     $main_row = new ALRow('main');
     $main_row->addItem(ALItem::newFromSpecialPage('Statistics'));
     $main_row->addItem(ALItem::newFromSpecialPage('Version'));
     $main_row->addItem(ALItem::newFromSpecialPage('Specialpages'));
     $main_row->addItem(ALItem::newFromSpecialPage('Log'));
     $main_row->addItem(ALItem::newFromSpecialPage('Allmessages'));
     $main_row->addItem(ALItem::newFromEditLink('Sidebar', $this->msg('adminlinks_editsidebar')->text()));
     $main_row->addItem(ALItem::newFromEditLink('Common.css', $this->msg('adminlinks_editcss')->text()));
     $main_row->addItem(ALItem::newFromEditLink('Mainpage', $this->msg('adminlinks_editmainpagename')->text()));
     $general_section->addRow($main_row);
     $tree->addSection($general_section);
     // 'users' section
     $users_section = new ALSection($this->msg('adminlinks_users')->text());
     $main_row = new ALRow('main');
     $main_row->addItem(ALItem::newFromSpecialPage('Listusers'));
     $ul = SpecialPage::getTitleFor('Userlogin');
     $al = SpecialPage::getTitleFor('AdminLinks');
     $main_row->addItem(AlItem::newFromPage($ul, $this->msg('adminlinks_createuser')->text(), array('type' => 'signup', 'returnto' => $al->getPrefixedText())));
     $main_row->addItem(ALItem::newFromSpecialPage('Userrights'));
     $users_section->addRow($main_row);
     $tree->addSection($users_section);
     // 'browsing and searching' section
     $browse_search_section = new ALSection($this->msg('adminlinks_browsesearch')->text());
     $main_row = new ALRow('main');
     $main_row->addItem(ALItem::newFromSpecialPage('Allpages'));
     $main_row->addItem(ALItem::newFromSpecialPage('Listfiles'));
     $main_row->addItem(ALItem::newFromSpecialPage('Search'));
     $browse_search_section->addRow($main_row);
     $tree->addSection($browse_search_section);
     // 'importing and exporting' section
     $import_export_section = new ALSection($this->msg('adminlinks_importexport')->text());
     $main_row = new ALRow('main');
     $main_row->addItem(ALItem::newFromSpecialPage('Export'));
     $main_row->addItem(ALItem::newFromSpecialPage('Import'));
     $import_export_section->addRow($main_row);
     $tree->addSection($import_export_section);
     return $tree;
 }
	/**
	 * Adds a link to Admin Links page.
	 * 
	 * @since 0.1
	 * 
	 * @return true
	 */
	public static function addToAdminLinks( &$admin_links_tree ) {
	    $displaying_data_section = $admin_links_tree->getSection( wfMsg( 'adminlinks_browsesearch' ) );
	
	    // Escape if SMW hasn't added links.
	    if ( is_null( $displaying_data_section ) ) return true;
	    $smw_docu_row = $displaying_data_section->getRow( 'smw' );
	
	    $smw_docu_row->addItem( AlItem::newFromSpecialPage( 'WatchlistConditions' ) );
	
	    return true;
	}
Example #6
0
 public static function addToAdminLinks(&$admin_links_tree)
 {
     $browse_search_section = $admin_links_tree->getSection(wfMessage('adminlinks_browsesearch')->text());
     $sd_row = new ALRow('sd');
     $sd_row->addItem(ALItem::newFromSpecialPage('BrowseData'));
     $sd_name = wfMessage('specialpages-group-sd_group')->text();
     $sd_docu_label = wfMessage('adminlinks_documentation', $sd_name)->text();
     $sd_row->addItem(AlItem::newFromExternalLink("https://www.mediawiki.org/wiki/Extension:Semantic_Drilldown", $sd_docu_label));
     $browse_search_section->addRow($sd_row);
     return true;
 }
/**
 * Adds a link to Admin Links page
 */
function spmfAddToAdminLinks( &$admin_links_tree ) {
	$displaying_data_section = $admin_links_tree->getSection( wfMsg( 'smw_adminlinks_displayingdata' ) );
	// escape is SMW hasn't added links
	if ( is_null( $displaying_data_section ) )
		return true;
	$smw_docu_row = $displaying_data_section->getRow( 'smw' );
	wfLoadExtensionMessages( 'SemanticProjectManagement' );
	$srf_docu_label = wfMsg( 'adminlinks_documentation', wfMsg( 'spm-name' ) );
	$smw_docu_row->addItem( AlItem::newFromExternalLink( "http://www.mediawiki.org/wiki/Extension:Semantic_Project_Management", $spm_docu_label ) );
	return true;
}
Example #8
0
 /**
  * Adds a link to Admin Links page.
  * 
  * @since 0.1
  * 
  * @return true
  */
 public static function addToAdminLinks(&$admin_links_tree)
 {
     $section = new ALSection('Survey');
     $row = new ALRow('smw');
     $row->addItem(AlItem::newFromSpecialPage('Surveys'));
     $section->addRow($row);
     $admin_links_tree->addSection($section, 'Survey');
     return true;
 }
/**
 *
 * Hook to add Permission action to page tab.
 * @param unknown_type $admin_links_tree
 */
function ACL_addToAdminLinks(&$admin_links_tree)
{
    $data_structure_label = wfMsg('adminlinks_users');
    $data_structure_section = $admin_links_tree->getSection($data_structure_label);
    if (is_null($data_structure_section)) {
        return true;
    }
    $main_row = $data_structure_section->getRow('main');
    $ul = SpecialPage::getTitleFor('FormStart');
    $params = array("form" => "ACL UserGroup", "namespace" => 'UserGroup');
    $paramsstr = "form=ACL UserGroup&namespace=UserGroup";
    $main_row->addItem(AlItem::newFromPage($ul, "Create Custom Group", $params));
    return true;
}