public getDocLink ( string $path ) : string | ||
$path | string | Path to documentation |
리턴 | string |
public function getDocLink($path)
{
$test = mb_substr($path, 0, 6);
if ($test == 'Import' || $test == 'Export') {
return '';
}
return Util::getDocuLink('config', 'cfg_' . $this->_getOptName($path));
}
/** * Test for FormDisplay::getDocLink * * @return void */ public function testGetDocLink() { $this->assertEquals("./url.php?url=https%3A%2F%2Fdocs.phpmyadmin.net%2Fen%2Flatest%2F" . "config.html%23cfg_Servers_3_test_2_", $this->object->getDocLink("Servers/3/test/2/")); $this->assertEquals('', $this->object->getDocLink("Import")); $this->assertEquals('', $this->object->getDocLink("Export")); }