src/Helper.php
public static function loadCellAuto($mValue, $sCellClass = '', $sCellAdditional = '')
    {
        //  @todo - handle more field types
        if (is_bool($mValue)) {
            return Helper::loadBoolCell($mValue);
        } elseif (preg_match('/\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d/', $mValue)) {
            return Helper::loadDateTimeCell($mValue);
        } elseif (preg_match('/\d\d\d\d-\d\d-\d\d/', $mValue)) {
            return Helper::loadDateCell($mValue);
        } else {
            return '<td class="' . $sCellClass . '">' . $mValue . $sCellAdditional . '</td>';
        }
    }
public static function loadCellAuto($mValue, $sCellClass = '', $sCellAdditional = '')
    {
        //  @todo - handle more field types
        if (is_bool($mValue)) {
            return Helper::loadBoolCell($mValue);
        } elseif (preg_match('/\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d/', $mValue)) {
            return Helper::loadDateTimeCell($mValue);
        } elseif (preg_match('/\d\d\d\d-\d\d-\d\d/', $mValue)) {
            return Helper::loadDateCell($mValue);
        } else {
            return '<td class="' . $sCellClass . '">' . $mValue . $sCellAdditional . '</td>';
        }
    }
Automatically decides what type of cell to load

@param mixed  $mValue          The value of the cell
@param string $sCellClass      Any classes to add to the cell
@param string $sCellAdditional Any additional HTML to add to the cell (after the value)

@return string
@throws \Nails\Common\Exception\FactoryException