forked from splittingred/FormIt
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
50 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/** | ||
* Resolve creating db tables | ||
* | ||
* THIS RESOLVER IS AUTOMATICALLY GENERATED, NO CHANGES WILL APPLY | ||
* | ||
* @package formit | ||
* @subpackage build | ||
* | ||
* @var mixed $object | ||
* @var modX $modx | ||
* @var array $options | ||
*/ | ||
|
||
if ($object->xpdo) { | ||
$modx =& $object->xpdo; | ||
switch ($options[xPDOTransport::PACKAGE_ACTION]) { | ||
case xPDOTransport::ACTION_INSTALL: | ||
case xPDOTransport::ACTION_UPGRADE: | ||
$modelPath = $modx->getOption('formit.core_path', null, $modx->getOption('core_path') . 'components/formit/') . 'model/'; | ||
|
||
$modx->addPackage('formit', $modelPath, null); | ||
|
||
|
||
$manager = $modx->getManager(); | ||
|
||
$manager->createObjectContainer('FormItForm'); | ||
|
||
break; | ||
} | ||
} | ||
|
||
return true; |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters