protected function getUniversalWhereClause($allowHiddenRecords = false)
    {
        $tableName = $this->getTableName();
        if ($this->testingFramework !== null) {
            $dummyColumnName = $this->testingFramework->getDummyColumnName($tableName);
            $leftPart = \Tx_Oelib_Db::tableHasColumn($this->getTableName(), $dummyColumnName)
                ? $dummyColumnName . ' = 1' : '1 = 1';
        } else {
            $leftPart = '1 = 1';
        }
        return $leftPart . \Tx_Oelib_Db::enableFields($tableName, ($allowHiddenRecords ? 1 : -1));
    }
protected function getUniversalWhereClause($allowHiddenRecords = false)
    {
        $tableName = $this->getTableName();
        if ($this->testingFramework !== null) {
            $dummyColumnName = $this->testingFramework->getDummyColumnName($tableName);
            $leftPart = \Tx_Oelib_Db::tableHasColumn($this->getTableName(), $dummyColumnName)
                ? $dummyColumnName . ' = 1' : '1 = 1';
        } else {
            $leftPart = '1 = 1';
        }
        return $leftPart . \Tx_Oelib_Db::enableFields($tableName, ($allowHiddenRecords ? 1 : -1));
    }
protected function getUniversalWhereClause ( $ allowHiddenRecords = false ) { $ tableName = $ this -> getTableName ( ) ; if ( $ this -> testingFramework !== null ) { $ dummyColumnName = $ this -> testingFramework -> getDummyColumnName ( $ tableName ) ; $ leftPart = \ Tx_Oelib_Db :: tableHasColumn ( $ this -> getTableName ( ) , $ dummyColumnName ) ? $ dummyColumnName . ' = 1' : '1 = 1' ; } else { $ leftPart = '1 = 1' ; } return $ leftPart . \ Tx_Oelib_Db :: enableFields ( $ tableName , ( $ allowHiddenRecords ? 1 : - 1 ) ) ; }
Returns the WHERE clause that selects all visible records from the DB.

@param bool $allowHiddenRecords whether hidden records should be found

@return string the WHERE clause that selects all visible records in the,
DB, will not be empty
Returns the WHERE clause that selects all visible records from the DB .