<?php
if ($object->xpdo) {
switch ($options[xPDOTransport::PACKAGE_ACTION]) {
case xPDOTransport::ACTION_INSTALL:
$modx =& $object->xpdo;
$modelPath = $modx->getOption('mycomponent.core_path',null,$modx->getOption('core_path').'components/mycomponent/').'model/';
$modx->addPackage('mycomponent',$modelPath);
$manager = $modx->getManager();
/* My first table object */
$manager->createObjectContainer('mycomponentObject');
/* My second table object */
$manager->createObjectContainer('mycomponentConfig');
/* My third table object */
$manager->createObjectContainer('mycomponentOutput');
break;
case xPDOTransport::ACTION_UPGRADE:
break;
}
}
return true;