Text.php 395 B

1234567891011121314151617181920
  1. <?php
  2. namespace common\libs\dataList\column;
  3. class Text extends AbstractColumn implements InterfaceColumn {
  4. public function __construct($config = []) {
  5. parent::__construct($config);
  6. }
  7. public function result(){
  8. $value = $this->getValue();
  9. if(!$value){
  10. return $this->defaultText;
  11. }
  12. return str_replace(',',',',$value);
  13. }
  14. }