SimpleBlockContentTest
class SimpleBlockContentTest extends Axmls implements TestInterface (View source)
Traits
Helpful search methods
Properties
| protected SimpleXMLElement | $rawXML | from XmlParser | |
| protected bool | $ignoreExistingTables | from XmlParser | |
| private | $em | ||
| private | $locator | ||
| private | $scanTables | 
Methods
Take a query object and add "or having" or "and having" for each filter on the Report This object gives us one place to implement new types of filters added to the Report class
Take a query and paginate over it in chunks defined by $perPage You can iterate over the return value and expect to receive all rows one by one.
Audit a dbal table or set of tables
Details
        
                            
    __construct(EntityManagerInterface $em, FileLocator $locator)
        
    
    No description
        
                            
    setIgnoreExistingTables(bool $ignoreExistingTables)
        
    
    No description
        in 
Axmls at line 10
                            
    parse(Connection $db)
        
    
    Transforms the XML from Adodb XML into Doctrine DBAL Schema.
        
                    protected        string|null
    getDatabaseVersion(Connection $db)
        
    
    No description
        in 
Axmls at line 36
                    protected        
    _setTableOpts(Connection $db, SimpleXMLElement $table, $schemaTable)
        
    
    No description
        in 
Axmls at line 49
                    protected        
    _setPrimaryKeys(Connection $db, SimpleXMLElement $table, $schemaTable)
        
    
    No description
        in 
Axmls at line 65
                    protected        
    _setIndexes(Connection $db, SimpleXMLElement $table, $schemaTable)
        
    
    No description
        in 
Axmls at line 88
                    protected        
    _getColumnOptions(Connection $db, SimpleXMLElement $column)
        
    
    No description
        in 
Axmls at line 146
                    protected        
    _getColumnType(SimpleXMLElement $column)
        
    
    No description
        
                    protected        bool
    applyQueryFilters(Runner $report, QueryBuilder|QueryBuilder $query, bool $having = true, string $filterColumn = 'content')
        
    
    Take a query object and add "or having" or "and having" for each filter on the Report This object gives us one place to implement new types of filters added to the Report class
        
                    protected        iterable
    iterateQuery($query, int $perPage = 1000)
        
    
    Take a query and paginate over it in chunks defined by $perPage You can iterate over the return value and expect to receive all rows one by one.
        
                    protected        
    auditDbal(Runner $report, string $table, string $idSelect, array $scanColumns, array $joins, callable $findingPopulator)
        
    
    Audit a dbal table or set of tables
        
                            void
    run(Runner $report)
        
    
    No description
        
                        private    void
    auditTable(Runner $report, string $table, array $columns)
        
    
    No description
        
                        private    bool
    addTable(BlockType $type)
        
    
    Locate a block's db.xml file and track its table to be scanned