RawValue.php
353 Bytes
<?php
namespace ACP\Export\Model;
use ACP\Export\Model;
/**
* Exportability model for outputting the column's raw value
* @since 4.1
*/
class RawValue extends Model {
public function get_value( $id ) {
$raw_value = $this->get_column()->get_raw_value( $id );
if ( ! is_scalar( $raw_value ) ) {
return null;
}
return $raw_value;
}
}