public function getReport($exclude = [])
    {
        $finder = new Finder();
        $iter = new ClassIterator($finder->in('.'));
        $iter->enableAutoloading();

        $result = $this->getBackendAuditManager()->checkGeneral();
        /** @var ReflectionClass $class */
        foreach ($iter->type('yii\db\ActiveRecord') as $name => $class) {
            if (in_array($name, $exclude)) {
                continue;
            }
            $result[$name] = $this->getBackendAuditManager()->checkModel(new $name);
        }

        return $result;
    }
public function getReport($exclude = [])
    {
        $finder = new Finder();
        $iter = new ClassIterator($finder->in('.'));
        $iter->enableAutoloading();

        $result = $this->getBackendAuditManager()->checkGeneral();
        /** @var ReflectionClass $class */
        foreach ($iter->type('yii\db\ActiveRecord') as $name => $class) {
            if (in_array($name, $exclude)) {
                continue;
            }
            $result[$name] = $this->getBackendAuditManager()->checkModel(new $name);
        }

        return $result;
    }
public function getReport ( $ exclude = [ ] ) { $ finder = new Finder ( ) ; $ iter = new ClassIterator ( $ finder -> in ( '.' ) ) ; $ iter -> enableAutoloading ( ) ; $ result = $ this -> getBackendAuditManager ( ) -> checkGeneral ( ) ; /** @var ReflectionClass $class */ foreach ( $ iter -> type ( 'yii\db\ActiveRecord' ) as $ name => $ class ) { if ( in_array ( $ name , $ exclude ) ) { continue ; } $ result [ $ name ] = $ this -> getBackendAuditManager ( ) -> checkModel ( new $ name ) ; } return $ result ; }
For every model found in the application and all modules checks if audit objects exist and are valid.
@param array $exclude as an array of model names
@return array
For every model found in the application and all modules checks if audit objects exist and are valid .