2017 © Pedro Peláez
 

contao-module dc-general-single-model

DcGeneral DataProvider and View for single model DCAs.

image

richardhj/dc-general-single-model

DcGeneral DataProvider and View for single model DCAs.

  • Friday, September 22, 2017
  • by richardhj
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

DcGeneral "Single Model" data provider

Latest Version on Packagist ![Software License][ico-license] Dependency Status, (*1)

This package provides a data provider and view for the DcGeneral. You can use it if your dca has to handle one dataset exactly – if you do not need a list view, just the edit mask. It is great to get rid of the DC_File., (*2)

Install

Via Composer, (*3)

``` bash $ composer require richardhj/dc-general-single-model, (*4)


## Usage For extension developers. ### DCA Minimum dca configuration ```php /** * DCA */ $GLOBALS['TL_DCA'][$table] = [ // Config 'config' => [ 'dataContainer' => 'General', 'forceEdit' => true, ], 'dca_config' => [ 'data_provider' => [ 'default' => [ 'class' => 'DcGeneral\Data\SingleModelDataProvider', ], ], 'view' => 'DcGeneral\View\SingleModelView', ],

The extension create a database table (with key=>value structure) on its when using the database installer., (*5)

Model

A model for accessing data, (*6)

namespace MagickImages\Model;

use DcGeneral\Contao\Model\AbstractSingleModel;

/**
 * @property string $implementation
 */
class Config extends AbstractSingleModel
{

    /**
     * {@inheritdoc}
     */
    protected static $strTable = 'tl_magickimages_config';


    /**
     * {@inheritdoc}
     */
    protected static $objInstance;
}

The Versions

22/09 2017

dev-feature/tng

dev-feature/tng

DcGeneral DataProvider and View for single model DCAs.

  Sources   Download

The Requires

 

13/10 2016

dev-master

9999999-dev

DcGeneral DataProvider and View for single model DCAs.

  Sources   Download

The Requires

 

11/10 2016

v1.0.0-beta.3

1.0.0.0-beta3

DcGeneral DataProvider and View for single model DCAs.

  Sources   Download

The Requires

 

11/10 2016

v1.0.0-beta.2

1.0.0.0-beta2

DcGeneral DataProvider and View for single model DCAs.

  Sources   Download

The Requires

 

11/10 2016

v1.0.0-beta.1

1.0.0.0-beta1

DcGeneral DataProvider and View for single model DCAs.

  Sources   Download

The Requires