src/Traits/TableTrait.php
protected function getAllowedPostColumns() : array
    {
        $arrColumns = $this->getTableColumns();
        $arrColumnNames = [];
        //$arrColumnTypes = [];
        
        foreach ($arrColumns as $column) {
            $arrColumnNames[] = $column['Field'];
            //$arrColumnTypes[] = $column['Type'];
        }
        return $arrColumnNames;
    }
protected function getAllowedPostColumns() : array
    {
        $arrColumns = $this->getTableColumns();
        $arrColumnNames = [];
        //$arrColumnTypes = [];
        
        foreach ($arrColumns as $column) {
            $arrColumnNames[] = $column['Field'];
            //$arrColumnTypes[] = $column['Type'];
        }
        return $arrColumnNames;
    }
protected function getAllowedPostColumns ( ) : array { $ arrColumns = $ this -> getTableColumns ( ) ; $ arrColumnNames = [ ] ; //$arrColumnTypes = []; foreach ( $ arrColumns as $ column ) { $ arrColumnNames [ ] = $ column [ 'Field' ] ; //$arrColumnTypes[] = $column['Type']; } return $ arrColumnNames ; }
Gets all columns of the db table, use them for security checks
@return array
Gets all columns of the db table use them for security checks