2017 © Pedro Peláez
 

library nette-configurator

Configurator component for Nette Framework

image

geniv/nette-configurator

Configurator component for Nette Framework

  • Sunday, July 29, 2018
  • by geniv
  • Repository
  • 1 Watchers
  • 0 Stars
  • 453 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 27 Versions
  • 32 % Grown

The README.md

Configurator & translator

Installation

$ composer require geniv/nette-configurator

or, (*1)

"geniv/nette-configurator": "^4.0"

require:, (*2)

"php": ">=7.0",
"nette/nette": ">=2.4",
"dibi/dibi": ">=3.0",
"geniv/nette-locale": ">=2.0",
"geniv/nette-search-content": ">=1.0",
"geniv/nette-translator": ">=2.0"

Include in application

available source drivers: - DevNullDriver (default values) - DibiDriver (dibi + cache _Configurator-DibiDriver), (*3)

self translator class: - ConfiguratorTranslator (cache _Configurator-ConfiguratorTranslator), (*4)

neon configure:, (*5)

# configurator
configurator:
#   debugger: true
#   autowired: true
#    driver: Configurator\Drivers\DevNullDriver
    driver: Configurator\Drivers\DibiDriver(%tablePrefix%)
    translator: false
#    searchMask: 
#       - *Translation.neon
    searchPath:
        - %appDir%/presenters/AppTranslation.neon
#    excludePath:
#        - CustomExcludeTranslation.neon

neon configure extension:, (*6)

extensions:
    configurator: Configurator\Bridges\Nette\Extension

description

internal combination id_ident and id_locale must by unique! type content is only like "category" or "flag of type", (*7)

Internal data are loading in first usage component., (*8)

Available interface: IConfigurator, (*9)

usage:, (*10)

protected function createComponentConfig(IConfigurator $configurator): IConfigurator
{
    // disable auto create ident
    //$configurator->setAutoCreate(false);
    return $configurator;
}
$this['config']->isEnable('ident'): bool;
$this['config']->getValue('ident'): mixed;

// echo value of ident
$this['config']->renderText('ident');
// return value of ident
$this['config']->renderText('ident', true);

// substitute logic
$this['config']->renderText('ident', null, 'arg');
$this['config']->renderText('ident', null, ['arg']);

// set data like translator
$this['config']->setTranslator('ident', 'text');
$this['config']->setEditor('ident', 'new text');

$this['config']->getDataByIdent('ident');

usage:, (*11)

{control config:text 'web-title'}

{control config:text 'web-title', true}

{control config:text 'web-title', null, 'argument'}
{control config:text 'web-title', null, ['argument']}



{control config:text 'web-title'}

{control config:text 'web-title'}

{* long equivalent - WHY?!: *}

{control config:text 'web-title'}

The Versions

29/07 2018

dev-develop

dev-develop

Configurator component for Nette Framework

  Sources   Download

MIT GPL-3.0

The Requires

 

by Radek Frystak

nette configurator geniv

29/07 2018

dev-master

9999999-dev

Configurator component for Nette Framework

  Sources   Download

MIT GPL-3.0

The Requires

 

by Radek Frystak

nette configurator geniv

29/07 2018

v2.1.6

2.1.6.0

Configurator component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

nette configurator geniv

26/07 2018

v2.1.5

2.1.5.0

Configurator component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

nette configurator geniv

26/07 2018

v2.1.4

2.1.4.0

Configurator component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

nette configurator geniv

04/05 2018

v2.1.3

2.1.3.0

Configurator component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

nette configurator geniv

28/03 2018

v2.1.2

2.1.2.0

Configurator component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

nette configurator geniv

27/03 2018

v2.1.1

2.1.1.0

Configurator component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

nette configurator geniv

26/03 2018

v2.1.0

2.1.0.0

Configurator component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

nette configurator geniv

20/02 2018

v2.0.4

2.0.4.0

Configurator component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

nette configurator geniv

20/02 2018

v2.0.3

2.0.3.0

Configurator component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

nette configurator geniv

20/02 2018

v2.0.2

2.0.2.0

Configurator component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

nette configurator geniv

20/02 2018

v2.0.1

2.0.1.0

Configurator component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

nette configurator geniv

20/02 2018

v2.0.0

2.0.0.0

Configurator component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

nette configurator geniv

20/02 2018

v1.1.2

1.1.2.0

Configurator component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

nette configurator geniv

19/02 2018

v1.1.1

1.1.1.0

Configurator component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

nette configurator geniv

27/01 2018

v1.1.0

1.1.0.0

Configurator component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

nette configurator geniv

23/01 2018

v1.0.9

1.0.9.0

Configurator component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

nette configurator geniv

19/01 2018

v1.0.8

1.0.8.0

Configurator component for Nette Framework

  Sources   Download

MIT GPL-3.0

The Requires

 

by Radek Frystak

nette configurator geniv

09/07 2017

v1.0.7

1.0.7.0

Configurator component for Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

by Radek Frystak

nette configurator geniv

24/06 2017

v1.0.6

1.0.6.0

Configurator component for Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

by Radek Frystak

nette configurator geniv

16/06 2017

v1.0.5

1.0.5.0

Configurator component for Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

by Radek Frystak

nette configurator geniv

28/05 2017

v1.0.4

1.0.4.0

Configurator component for Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

by Radek Frystak

nette configurator geniv

14/05 2017

v1.0.3

1.0.3.0

Configurator component for Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

by Radek Frystak

nette configurator geniv

12/05 2017

v1.0.2

1.0.2.0

Configurator component for Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

by Radek Frystak

nette configurator geniv

10/05 2017

v1.0.1

1.0.1.0

Configurator component for Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

by Radek Frystak

nette configurator geniv

08/05 2017

v1.0

1.0.0.0

Configurator component for Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

by Radek Frystak

nette configurator geniv