Last active
August 22, 2016 08:34
-
-
Save der-On/eabd62b85737ebf8a55bd20330e42304 to your computer and use it in GitHub Desktop.
Syncs all files for contao metamodels openimmo
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
<?php | |
// initialize the contao framework | |
define('TL_MODE', 'FE'); | |
require('../system/initialize.php'); | |
$cron = new \MetaModelsOpenImmo\Cron(); | |
$cron->run(); |
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
<?php | |
// initialize the contao framework | |
define('TL_MODE', 'FE'); | |
require('../system/initialize.php'); | |
$api = new \MetaModelsOpenImmo\Api(); | |
$objects = $api->loadAllMetaModelObjects(); | |
foreach($objects as $object) { | |
$api->syncAllFilesFor($object, 'script'); | |
} |
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
<?php | |
// initialize the contao framework | |
define('TL_MODE', 'FE'); | |
require('../system/initialize.php'); | |
$api = new \MetaModelsOpenImmo\Api(); | |
$cron = new \MetaModelsOpenImmo\Cron(); | |
$objects = $api->loadAllMetaModelObjects(); | |
foreach($objects as $object) { | |
$cron->sync($object); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment