2017 © Pedro PelΓ‘ez
 

library admin_helper_lib

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

image

nook-ru/admin_helper_lib

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  • Friday, May 4, 2018
  • by nook
  • Repository
  • 2 Watchers
  • 2 Stars
  • 43 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 54 Forks
  • 0 Open issues
  • 36 Versions
  • 10 % Grown

The README.md

digitalwand/admin_helper_lib

travis-ci, (*1)

API для сборки кастомных Π°Π΄ΠΌΠΈΠ½ΠΎΠΊ Π² БитриксС., (*2)

ВСрсия Π² Π²ΠΈΠ΄Π΅ Π±ΠΈΠ±Π»ΠΈΠΎΡ‚Π΅ΠΊΠΈ, ΠΏΡ€Π΅Π΄Π½Π°Π·Π½Π°Ρ‡Π΅Π½Π° для использования Π² собствСнных модулях. Π ΠΎΡƒΡ‚ΠΈΠ½Π³ Π΄ΠΎΠ»ΠΆΠ΅Π½ ΠΎΠ±Π΅ΡΠΏΠ΅Ρ‡ΠΈΠ²Π°Ρ‚ΡŒΡΡ срСдствами модуля-ΠΊΠ»ΠΈΠ΅Π½Ρ‚Π°, для ΠΏΡ€ΠΈΠΌΠ΅Ρ€Π°, см. admin/route.php ΠΈΠ· ΠΏΠΎΠ»Π½ΠΎΠΉ вСрсии., (*3)

ДокумСнтация ΠΏΠΎ ΠΌΠΎΠ΄ΡƒΠ»ΡŽ доступна ΠΏΠΎ адрСсу http://api.digitalwand.ru/admin_helper/. Π•Ρ‘ ΠΆΠ΅ ΠΌΠΎΠΆΠ½ΠΎ ΠΏΡ€ΠΎΡ‡ΠΈΡ‚Π°Ρ‚ΡŒ Π² коммСнтариях Π² ΠΊΠΎΠ΄Π΅ модуля., (*4)

Π•ΡΡ‚ΡŒ Ρ…ΠΎΡ€ΠΎΡˆΠ°Ρ вводная ΡΡ‚Π°Ρ‚ΡŒΡ Π² Π±Π»ΠΎΠ³Π΅: Π“Π΅Π½Π΅Ρ€Π°Ρ‚ΠΎΡ€ Π°Π΄ΠΌΠΈΠ½ΠΎΠΊ «Битрикса»., (*5)

ΠŸΡ€ΠΎΡΡ‚ΠΎΠΉ Ρ€Π°Π±ΠΎΡ‡ΠΈΠΉ ΠΏΡ€ΠΈΠΌΠ΅Ρ€ Ρ€Π΅Π°Π»ΠΈΠ·ΠΎΠ²Π°Π½ ΠΎΡ‚Π΄Π΅Π»ΡŒΠ½Ρ‹ΠΌ ΠΌΠΎΠ΄ΡƒΠ»Π΅ΠΌ demo.adminhelper, (*6)

ΠšΠΎΠ½Ρ†Π΅ΠΏΡ†ΠΈΡ

Π”Π°Π½Π½Ρ‹ΠΉ ΠΌΠΎΠ΄ΡƒΠ»ΡŒ Ρ€Π΅Π°Π»ΠΈΠ·ΡƒΠ΅Ρ‚ ΠΏΠΎΠ΄Ρ…ΠΎΠ΄ MVC для создания административного интСрфСйса., (*7)

Π’ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡ‚ΡŒ построСния административного интСрфСйса появляСтся благодаря Π½Π°Π»ΠΈΡ‡ΠΈΡŽ Π΅Π΄ΠΈΠ½ΠΎΠ³ΠΎ API для CRUD-опСрациями Π½Π°Π΄ сущностями. ΠŸΠΎΡΡ‚ΠΎΠΌΡƒ построСниС Π°Π΄ΠΌΠΈΠ½. интСрфСйса срСдствами Π΄Π°Π½Π½ΠΎΠ³ΠΎ модуля Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎ Ρ‚ΠΎΠ»ΡŒΠΊΠΎ для классов, Ρ€Π΅Π°Π»ΠΈΠ·ΡƒΡŽΡ‰ΠΈΡ… API ORM Битрикс. ΠŸΡ€ΠΈ ΠΆΠ΅Π»Π°Π½ΠΈΠΈ ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚ΡŒ Π΄Π°Π½Π½Ρ‹ΠΉ ΠΌΠΎΠ΄ΡƒΠ»ΡŒ для сущностСй, Π½Π΅ ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΡŽΡ‰ΠΈΡ… ORM Битрикс, ΠΌΠΎΠΆΠ½ΠΎ ΠΏΠΎΠ΄Π³ΠΎΡ‚ΠΎΠ²ΠΈΡ‚ΡŒ для Ρ‚Π°ΠΊΠΈΡ… сущностСй класс-ΠΎΠ±Ρ‘Ρ€Ρ‚ΠΊΡƒ, Ρ€Π΅Π°Π»ΠΈΠ·ΡƒΡŽΡ‰ΠΈΠΉ Π½Π΅ΠΎΠ±Ρ…ΠΎΠ΄ΠΈΠΌΡ‹Π΅ Ρ„ΡƒΠ½ΠΊΡ†ΠΈΠΈ., (*8)

ΠžΡΠ½ΠΎΠ²Π½Ρ‹Π΅ понятия модуля:, (*9)

  • МодСль: "model" Π² Ρ‚Π΅Ρ€ΠΌΠΈΠ½Π°Ρ… MVC. Класс, унаслСдованный ΠΎΡ‚ DataManager ΠΈΠ»ΠΈ Ρ€Π΅Π°Π»ΠΈΠ·ΡƒΡŽΡ‰ΠΈΠΉ Π°Π½Π°Π»ΠΎΠ³ΠΈΡ‡Π½Ρ‹ΠΉ API.
  • Π₯элпСр: "view" Π² Ρ‚Π΅Ρ€ΠΌΠΈΠ½Π°Ρ… MVC. Класс, Ρ€Π΅Π°Π»ΠΈΠ·ΡƒΡŽΡ‰ΠΈΠΉ отрисовку интСрфСйса списка ΠΈΠ»ΠΈ Π΄Π΅Ρ‚Π°Π»ΡŒΠ½ΠΎΠΉ страницы.
  • Π ΠΎΡƒΡ‚Π΅Ρ€: "controller" Π² Ρ‚Π΅Ρ€ΠΌΠΈΠ½Π°Ρ… MVC. Π€Π°ΠΉΠ», ΠΏΡ€ΠΈΠ½ΠΈΠΌΠ°ΡŽΡ‰ΠΈΠΉ всС запросы ΠΊ Π°Π΄ΠΌΠΈΠ½ΠΊΠ΅ Π΄Π°Π½Π½ΠΎΠ³ΠΎ модуля, ΡΠΎΠ·Π΄Π°ΡŽΡ‰ΠΈΠΉ Π½ΡƒΠΆΠ½Ρ‹Π΅ хэлпСры с Π½ΡƒΠΆΠ½Ρ‹ΠΌΠΈ настройками. Π‘ Π½ΠΈΠΌ Π½Π°ΠΏΡ€ΡΠΌΡƒΡŽ Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π΅ придётся.
  • Π’ΠΈΠ΄ΠΆΠ΅Ρ‚Ρ‹: "delegate" Π² Ρ‚Π΅Ρ€ΠΌΠΈΠ½Π°Ρ… MVC. ΠšΠ»Π°ΡΡΡ‹, ΠΎΡ‚Π²Π΅Ρ‡Π°ΡŽΡ‰ΠΈΠ΅ Π·Π° отрисовку элСмСнтов управлСния для ΠΎΡ‚Π΄Π΅Π»ΡŒΠ½Ρ‹Ρ… ΠΏΠΎΠ»Π΅ΠΉ сущностСй. Π’ спискС ΠΈ Π½Π° Π΄Π΅Ρ‚Π°Π»ΡŒΠ½ΠΎΠΉ.

Π‘Ρ…Π΅ΠΌΠ° Ρ€Π°Π±ΠΎΡ‚Ρ‹ с ΠΌΠΎΠ΄ΡƒΠ»Π΅ΠΌ ΡΠ»Π΅Π΄ΡƒΡŽΡ‰Π°Ρ:, (*10)

  • РСализация класса AdminListHelper - для управлСния страницСй списка элСмСнтов
  • РСализация класса AdminEditHelper - для управлСния страницСй просмотра/рСдактирования элСмСнта
  • Π‘ΠΎΠ·Π΄Π°Π½ΠΈΠ΅ Ρ„Π°ΠΉΠ»Π° Interface.php с Π²Ρ‹Π·ΠΎΠ²ΠΎΠΌ AdminBaseHelper::setInterfaceSettings(), Π² ΠΊΠΎΡ‚ΠΎΡ€ΡƒΡŽ пСрСдаСтся конфигурация ΠΏΠΎΠ»Π΅ΠΉ Π°Π΄ΠΌΠΈΠ½ΠΊΠΈ ΠΈ классы, ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠ΅ΠΌΡ‹Π΅ для Π΅Ρ‘ построСния.
  • Если Π½Π΅ Ρ…Π²Π°Ρ‚Π°Π΅Ρ‚ возмоТностСй Π²ΠΈΠ΄ΠΆΠ΅Ρ‚ΠΎΠ², ΠΈΠ΄ΡƒΡ‰ΠΈΡ… с ΠΌΠΎΠ΄ΡƒΠ»Π΅ΠΌ, ΠΌΠΎΠΆΠ½ΠΎ Ρ€Π΅Π°Π»ΠΈΠ·ΠΎΠ²Π°Ρ‚ΡŒ свой Π²ΠΈΠ΄ΠΆΠ΅Ρ‚, унаслСдованный ΠΎΡ‚ любого Π΄Ρ€ΡƒΠ³ΠΎΠ³ΠΎ Π³ΠΎΡ‚ΠΎΠ²ΠΎΠ³ΠΎ Π²ΠΈΠ΄ΠΆΠ΅Ρ‚Π° ΠΈΠ»ΠΈ ΠΎΡ‚ абстрактного класса HelperWidget

РСкомСндуСмая файловая структура для ΠΌΠΎΠ΄ΡƒΠ»Π΅ΠΉ, ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΡŽΡ‰ΠΈΡ… Π΄Π°Π½Π½Ρ‹ΠΉ Ρ„ΡƒΠ½ΠΊΡ†ΠΈΠΎΠ½Π°Π»:, (*11)

  • ΠšΠ°Ρ‚Π°Π»ΠΎΠ³ admin. Достаточно ΠΏΠΎΠΌΠ΅ΡΡ‚ΠΈΡ‚ΡŒ Π² Π½Π΅Π³ΠΎ Ρ„Π°ΠΉΠ» menu.php, ΠΎΡ‚Π΄Π΅Π»ΡŒΠ½Ρ‹Π΅ Ρ„Π°ΠΉΠ»Ρ‹ для списка ΠΈ Π΄Π΅Ρ‚Π°Π»ΡŒΠ½ΠΎΠΉ ΡΠΎΠ·Π΄Π°Π²Π°Ρ‚ΡŒ Π½Π΅ Π½Π°Π΄ΠΎ благодаря Π΅Π΄ΠΈΠ½ΠΎΠΌΡƒ Ρ€ΠΎΡƒΡ‚ΠΈΠ½Π³Ρƒ.
  • ΠšΠ°Ρ‚Π°Π»ΠΎΠ³ classes (ΠΈΠ»ΠΈ lib): содСрТит классы ΠΌΠΎΠ΄Π΅Π»ΠΈ, прСдставлСний ΠΈ Π΄Π΅Π»Π΅Π³Π°Ρ‚ΠΎΠ².
  • -- classes/helper: ΠΊΠ°Ρ‚Π°Π»ΠΎΠ³, содСрТащий классы "view", унаслСдованныС ΠΎΡ‚ AdminListHelper ΠΈ AdminEditHelper.
  • -- classes/widget: ΠΊΠ°Ρ‚Π°Π»ΠΎΠ³, содСрТащий Π²ΠΈΠ΄ΠΆΠ΅Ρ‚Ρ‹ ("delegate"), Ссли для модуля ΠΏΡ€ΠΈΡˆΠ»ΠΎΡΡŒ ΡΠΎΠ·Π΄Π°Π²Π°Ρ‚ΡŒ свои.
  • -- classes/model: ΠΊΠ°Ρ‚Π°Π»ΠΎΠ³ с модСлями, Ссли ΠΏΡ€ΠΈΡˆΠ»ΠΎΡΡŒ ΠΏΠ΅Ρ€Π΅ΠΎΠΏΡ€Π΅Π΄Π΅Π»ΡΡ‚ΡŒ ΠΏΠΎΠ²Π΅Π΄Π΅Π½ΠΈΠ΅ стандартных Ρ„ΡƒΠ½ΠΊΡ†ΠΈΠΉ getList ΠΈ Ρ‚.Π΄.

Π˜ΡΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚ΡŒ Π΄Π°Π½Π½ΡƒΡŽ структуру Π½Π΅ ΠΎΠ±ΡΠ·Π°Ρ‚Π΅Π»ΡŒΠ½ΠΎ, это лишь рСкомСндация, основанная Π½Π° ΡƒΡΠΏΠ΅ΡˆΠ½ΠΎΠΌ ΠΎΠΏΡ‹Ρ‚Π΅ примСнСния модуля Π² рядС ΠΏΡ€ΠΎΠ΅ΠΊΡ‚ΠΎΠ²., (*12)

Π Π°Π·Ρ€Π°Π±ΠΎΡ‚Ρ‡ΠΈΠΊΠΈ

The Versions

04/05 2018

dev-2.x-lib-fixes

dev-2.x-lib-fixes

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

api bitrix admin

15/02 2018

2.1.2.8

2.1.2.8

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

api bitrix admin

07/02 2018

2.1.2.7

2.1.2.7

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api bitrix admin

07/02 2018

2.1.2.6

2.1.2.6

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api bitrix admin

24/01 2018

2.1.2.5

2.1.2.5

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api bitrix admin

11/01 2018

2.1.2.4

2.1.2.4

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api bitrix admin

11/01 2018

2.1.2.3

2.1.2.3

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api bitrix admin

10/10 2017

2.1.2.2

2.1.2.2

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api bitrix admin

10/10 2017

dev-fix-edit-select

dev-fix-edit-select

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

 

api bitrix admin

28/08 2017

dev-2.x-lang

dev-2.x-lang

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

 

api bitrix admin

26/05 2017

2.1.2.1

2.1.2.1

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api bitrix admin

26/05 2017

2.1.2

2.1.2.0

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api bitrix admin

26/05 2017

dev-2.x-lib

dev-2.x-lib

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api bitrix admin

26/05 2017

dev-fix-widget-getlist-options

dev-fix-widget-getlist-options

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

 

api bitrix admin

09/05 2017

dev-fix-public-popup

dev-fix-public-popup

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

 

api bitrix admin

21/04 2017

dev-only-list

dev-only-list

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

 

api bitrix admin

17/04 2017

dev-sorting

dev-sorting

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

 

api bitrix admin

17/04 2017

2.0.4

2.0.4.0

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api bitrix admin

17/04 2017

2.1.1

2.1.1.0

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api bitrix admin

17/04 2017

dev-section-up-fix

dev-section-up-fix

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

 

api bitrix admin

17/04 2017

dev-pagenav-fix

dev-pagenav-fix

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

 

api bitrix admin

14/04 2017

dev-fix-section-deletion

dev-fix-section-deletion

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

 

api bitrix admin

10/04 2017

dev-fix-section-field-objects

dev-fix-section-field-objects

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

 

api bitrix admin

14/03 2017

dev-php-compat-travis

dev-php-compat-travis

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

 

api bitrix admin

13/03 2017

dev-bugfix

dev-bugfix

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

 

api bitrix admin

11/03 2017

dev-enum-orm

dev-enum-orm

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

 

api bitrix admin

10/06 2016

2.1.0

2.1.0.0

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

 

api bitrix admin

20/04 2016

2.0.3

2.0.3.0

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

 

api bitrix admin

28/03 2016

2.x-dev

2.9999999.9999999.9999999-dev

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

 

api bitrix admin

28/03 2016

2.0.2

2.0.2.0

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

 

api bitrix admin

22/01 2016

2.0.1

2.0.1.0

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

 

api bitrix admin

22/01 2016

2.0.0

2.0.0.0

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

  Sources   Download

MIT

The Requires

 

api bitrix admin

07/01 2016

2.0.0-RC2

2.0.0.0-RC2

API for custom admin interface in Bitrix.

  Sources   Download

MIT

The Requires

 

by DigitalWand

api bitrix admin

14/12 2015

2.0.0-RC1

2.0.0.0-RC1

API for custom admin interface in Bitrix.

  Sources   Download

MIT

The Requires

 

by DigitalWand

api bitrix admin

14/12 2015

2.0.0-RC

2.0.0.0-RC

API for custom admin interface in Bitrix.

  Sources   Download

MIT

The Requires

 

by DigitalWand

api bitrix admin

13/11 2015

1.0.0

1.0.0.0

API for custom admin interface in Bitrix.

  Sources   Download

MIT

The Requires

 

by DigitalWand

api bitrix admin