| 1 |
<?php |
| 2 |
|
| 3 |
defined('ABSPATH') or die("Cannot access pages directly."); |
| 4 |
|
| 5 |
class StringWDTColumn extends WDTColumn |
| 6 |
{ |
| 7 |
|
| 8 |
protected $_dataType = 'string'; |
| 9 |
protected $_jsDataType = 'string'; |
| 10 |
|
| 11 |
public function __construct($properties = array()) |
| 12 |
{ |
| 13 |
parent::__construct($properties); |
| 14 |
$this->_dataType = 'string'; |
| 15 |
$this->_foreignKeyRule = WDTTools::defineDefaultValue($properties, 'foreignKeyRule', null); |
| 16 |
} |
| 17 |
|
| 18 |
public function prepareCellOutput($content) |
| 19 |
{ |
| 20 |
$content = apply_filters('wpdatatables_filter_string_cell_before_formatting', $content, $this->getParentTable()->getWpId()); |
| 21 |
|
| 22 |
if (get_option('wdtParseShortcodes')) { |
| 23 |
if(!is_null($content)) |
| 24 |
$content = do_shortcode($content); |
| 25 |
} |
| 26 |
return apply_filters('wpdatatables_filter_string_cell', $content, $this->getParentTable()->getWpId()); |
| 27 |
} |
| 28 |
|
| 29 |
} |