コード例 #1
0
 /**
  * Tell the module to init info about itself.
  *
  * Check it's still valid-ish and has files and an info file.
  * The dir may have gone away in the meantime.
  *
  * @param $module
  *
  * @return Module
  */
 public function runContentScan(Module $module)
 {
     if (!is_dir($module->getLocation())) {
         error_log('Module Directory has gome missing.');
         $module->addStatus('content:failed-missing');
     } else {
         $filecount = $module->getFilecount();
         $this->log("{$module->name} filecount is {$filecount}");
         $codefilecount = $module->getCodeFilecount($this->options['extensions']);
         $this->log("{$module->name} codefilecount is {$codefilecount}");
         $module->addStatus('content:processed');
     }
     return $module;
 }