xPDOTransport.put
Last updated not available | Page history | Improve this page | Report an issue
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¶
Adds an artifact to the transport. The artifact is a file on disk; its attributes describe how it should be installed (target path, vehicle, preservation rules).
Syntax¶
boolean put (string $artifact, [array $attributes = array()])
Example¶
$transport->put(MODX_CORE_PATH . 'components/my_package/model/myclass.class.php', array(
'vehicle' => 'xPDOFileVehicle',
'target' => 'return MODX_CORE_PATH . "components/my_package/model/";',
));
See Also¶
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










