コード例 #1
0
 protected static function gatewayClass()
 {
     return AppliedChangesLogTable::className();
 }
コード例 #2
0
 /**
  * @return Collector[]
  */
 public function getNotAppliedCollectors()
 {
     $result = AppliedChangesLogTable::getList(array('select' => array('GROUP_LABEL'), 'group' => array('GROUP_LABEL')));
     $usesGroups = array_map(function ($row) {
         return $row['GROUP_LABEL'];
     }, $result->fetchAll());
     $dir = new Directory($this->_getFixFilesDir());
     $collectors = array();
     $files = array();
     foreach ($dir->getChildren() as $file) {
         if ($file->isDirectory()) {
             continue;
         }
         if (in_array($file->getName(), $usesGroups)) {
             continue;
         }
         $files[$file->getName()] = $file;
     }
     ksort($files);
     foreach ($files as $file) {
         $collectors[] = Collector::createByFile($file->getPath(), $this);
     }
     return $collectors;
 }