App\Libraries\Utils::getEntityRowClass PHP Метод

getEntityRowClass() публичный статический Метод

public static getEntityRowClass ( $model )
    public static function getEntityRowClass($model)
    {
        $str = '';
        if (property_exists($model, 'is_deleted')) {
            $str = $model->is_deleted || $model->deleted_at && $model->deleted_at != '0000-00-00' ? 'DISABLED ' : '';
            if ($model->is_deleted) {
                $str .= 'ENTITY_DELETED ';
            }
        }
        if ($model->deleted_at && $model->deleted_at != '0000-00-00') {
            $str .= 'ENTITY_ARCHIVED ';
        }
        return $str;
    }