datatable/columns/actions/Basic.php
public function getIcon($title, Table $table) {
        if ($this->icon) {
            $icon = str_replace(array('%DATATABLE_ASSETS%', '%SIZE%'), array($table->getAssetsURL(), $this->iconSize . 'x' . $this->iconSize), $this->icon);
            if ('%MPF_ASSETS%' == substr($icon, 0, 12)) {
                $icon = AssetsPublisher::get()->mpfAssetFile(substr($icon, 12));
            }
            return Html::get()->image($icon, $title);
        }
        return '';
    }
public function getIcon($title, Table $table) {
        if ($this->icon) {
            $icon = str_replace(array('%DATATABLE_ASSETS%', '%SIZE%'), array($table->getAssetsURL(), $this->iconSize . 'x' . $this->iconSize), $this->icon);
            if ('%MPF_ASSETS%' == substr($icon, 0, 12)) {
                $icon = AssetsPublisher::get()->mpfAssetFile(substr($icon, 12));
            }
            return Html::get()->image($icon, $title);
        }
        return '';
    }
public function getIcon ( $ title , Table $ table ) { if ( $ this -> icon ) { $ icon = str_replace ( array ( '%DATATABLE_ASSETS%' , '%SIZE%' ) , array ( $ table -> getAssetsURL ( ) , $ this -> iconSize . 'x' . $ this -> iconSize ) , $ this -> icon ) ; if ( '%MPF_ASSETS%' == substr ( $ icon , 0 , 12 ) ) { $ icon = AssetsPublisher :: get ( ) -> mpfAssetFile ( substr ( $ icon , 12 ) ) ; } return Html :: get ( ) -> image ( $ icon , $ title ) ; } return '' ; }
Get HTML img tag for icon or an empty string if there is no icon
@param string $title
@param \mpf\widgets\datatable\Table $table
@return string
Get HTML img tag for icon or an empty string if there is no icon