_resolveData() public method

This function is registered as a SQL function named DATARESOLVE
public _resolveData ( string $value, string $colname ) : string
$value string
$colname string
return string
Esempio n. 1
0
 function testResolveData()
 {
     $helper = new helper_plugin_data();
     $this->assertEquals('tom', $helper->_resolveData('tom', 'name'));
     $this->assertEquals('jerry', $helper->_resolveData('jerry', 'name'));
     $this->assertEquals('wiki:syntax Formatting Syntax', $helper->_resolveData('wiki:syntax', 'name_title'));
     $this->assertEquals('none:existing ', $helper->_resolveData('none:existing', 'name_title'));
 }