xPDOTransport.put
Последнее обновление Oct 16th, 2026 | История страницы | Улучшить эту страницу | Сообщить о проблеме
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn morexPDOTransport::put¶
Добавляет артефакт в транспорт. Артефакт — это файл на диске; его атрибуты описывают, как он должен быть установлен (путь назначения, транспортное средство, правила сохранения).
Синтаксис¶
boolean put (string $artifact, [array $attributes = array()])
Пример¶
$transport->put(MODX_CORE_PATH . 'components/my_package/model/myclass.class.php', array(
'vehicle' => 'xPDOFileVehicle',
'target' => 'return MODX_CORE_PATH . "components/my_package/model/";',
));
Смотрите также¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn more










