示例#1
0
 /**
  * Sync component
  */
 public final function sync()
 {
     if (!$this->isSyncable()) {
         return;
     }
     ModSync\Logger::notice('Syncing: ' . $this->getName());
     $this->beforeSyncHook();
     $this->_createNamespace();
     $dir = self::getCoreComponentsDir() . DIRECTORY_SEPARATOR . $this->getName();
     foreach ($this->_elements as $element) {
         $this->_syncFolder($dir . DIRECTORY_SEPARATOR . $element);
     }
     $this->afterSyncHook();
 }
示例#2
0
文件: Sync.php 项目: rzak/ModSync
 private function _doClearCache()
 {
     ModSync\Logger::notice('Clearing Cache');
     self::getModX()->getCacheManager()->refresh();
 }