Идеология Структуры Фреймворка MODx Revolution

modxcms.com, “MODx Revolution Framework Structure Ideology ”, public translation into Russian from English More about this translation.

See also 80 similar translations

Another translations: into Hungarian. Translate into another language.

Participants

security246 points
denis.solonenko35 points
elastic2 points
Join Translated.by to translate! If you already have a Translated.by account, please sign in.
If you do not want to register an account, you can sign in with OpenID.
Pages: ← previous Ctrl next →
1

MODx Revolution Framework Structure Ideology

Идеология Структуры Фреймворка MODx Revolution

History of edits (Latest: security 1 year, 11 months ago) §

The manager in MODx Revolution is structured like so.

Менеджер (Manager) в MODx Revolution структурирован следующим образом.

History of edits (Latest: denis.solonenko 2 years, 10 months ago) §

Controllers

Контроллеры (Controllers)

History of edits (Latest: denis.solonenko 2 years, 10 months ago) §

Templates

Шаблоны (Templates)

History of edits (Latest: denis.solonenko 2 years, 10 months ago) §

Connectors

Конекторы (Connectors)

History of edits (Latest: elastic 2 years, 6 months ago) §

Processors

Обработчики (Processors)

History of edits (Latest: denis.solonenko 2 years, 10 months ago) §

Controllers

Контроллеры (Controllers)

History of edits (Latest: denis.solonenko 2 years, 10 months ago) §

Controllers are the PHP pages loaded prior to rendering the page. They grab information and assign variables to Smarty.

Контроллеры (Controllers) - это PHP страницы, загружающиеся до рендеринга страницы. Они загружают информацию и присваивают переменные Smarty.

History of edits (Latest: denis.solonenko 2 years, 10 months ago) §

Controllers are abstracted in the MODx framework as "modAction". This way the user can create manager pages simply by creating the files and then creating a modAction object. Doing so will allow the developer to add controllers directly into the top menu. MODx also caches its action map ($modx->actionMap) for quick and easy redirection to the proper controller.

Контроллеры абстрагируются в рамках MODx Фреймворка как "modAction". Таким образом, пользователь может создать менеджер страниц просто путем создания файлов и затем создать modAction объекта. Это позволит разработчикам добавлять контроллеры непосредственно в верхнем меню. MODx также кэширует свои действия карты ($modx->actionMap) для быстрого и простого перехода на правильный контроллер.

History of edits (Latest: security 1 year, 11 months ago) §

Controllers never manipulate data - they simply fetch it.

Контроллеры никогда не манипулируют данными - они просто получают их.

History of edits (Latest: security 1 year, 11 months ago) §

Templates

Шаблоны

History of edits (Latest: security 1 year, 11 months ago) §

Templates are [http://smarty.php.net Smarty] templates that are primarily XHTML, Smarty tags, and a little JS here and there. They are used to separate code from content, and are loaded based upon their parallel controller.

Шаблоны - [http://smarty.php.net Smarty] шаблоны, которые являются главным образом XHTML, Smarty тегами, и небольшими JS тут и там. Они используются для того, чтобы отделить код от информационного наполнения, и их загрузка основана на их параллельном контроллере.

History of edits (Latest: security 1 year, 11 months ago) §

Connectors

Конекторы

History of edits (Latest: security 1 year, 11 months ago) §

Connectors are isolated PHP scripts that all require the connectors/index.php file. They then forward data manipulation or remote data fetching requests to the processors, which then return it to the AJAX request made in the JS files. They determine the processor to load based on the $_REQUEST 'action' variable, specified in the JS request.

Конекторы изолированные PHP скрипты, которые требуют connectors/index.php файл. После этого они пересылают данные на обработку или удаленных выборок данных запросов к процессорам, которые возвращают AJAX запросы сделанные в JS файлах. Они определяют процессор, чтобы загрузиться на основании $_REQUEST 'action' переменной, определенной в запросе JS.

History of edits (Latest: security 1 year, 11 months ago) §

Connectors are locked down to receive requests only from authorized sources, to prevent internal hacking.

Конекторы заблокированы, чтобы получать запросы только из авторизованных источников, в целях предотвращения внутреннего взлома.

History of edits (Latest: security 1 year, 11 months ago) §

Processors

Процессоры

History of edits (Latest: security 1 year, 11 months ago) §

Processors are the 'cogs' of MODx. They are called _only_ by connectors or controllers, and never accessed directly. They manipulate or fetch database records, and are isolated by the task what they perform (using CRUD structure) to allow for quick and easy debugging.

Процессоры - 'винтики' MODx. Их называют "called _only_ by" (вызываться только) соединители или контроллеры, и никогда не обращаются непосредственно. Они управляют или выбирают записи базы данных, и выполняют изолированые задачи (используя структуры CRUD), чтобы учесть быструю и простую отладку.

History of edits (Latest: security 1 year, 11 months ago) §

They send error messages through the modJSONError PHP class, which is an abstraction layer class that allows for easy JSON-formatted error messages to be sent back to the browser's XMLHttpRequest.

Они посылают сообщения об ошибках с помощью класса modJSONError PHP, который является классом уровеня абстракции, позволяя легко JSON-форматировать сообщения об ошибках, которые должны быть возвращены XMLHttpRequest браузера.

History of edits (Latest: security 1 year, 11 months ago) §
Pages: ← previous Ctrl next →
1