kernel/classes/ezcontentobjectversion.php
function hasConflicts( $editLanguage = false )
    {
        $object = $this->contentObject();
        if ( !$editLanguage )
            $editLanguage = $this->initialLanguageCode();

        // Get versions (with published or archived status)
        $versions = $object->versions( true, array( 'conditions' => array( 'status' => array( array( eZContentObjectVersion::STATUS_PUBLISHED, eZContentObjectVersion::STATUS_ARCHIVED ) ),
                                                                           'language_code' => $editLanguage ) ) );

        $conflictVersions = array();
        foreach ( array_keys( $versions ) as $key )
        {
            $version =& $versions[$key];
            if ( $version->attribute( 'modified' ) > $this->attribute( 'created' ) )
            {
                $conflictVersions[] = $version;
            }
        }
        if ( !count( $conflictVersions ) )
        {
            return false;
        }

        return $conflictVersions;
    }
function hasConflicts( $editLanguage = false )
    {
        $object = $this->contentObject();
        if ( !$editLanguage )
            $editLanguage = $this->initialLanguageCode();

        // Get versions (with published or archived status)
        $versions = $object->versions( true, array( 'conditions' => array( 'status' => array( array( eZContentObjectVersion::STATUS_PUBLISHED, eZContentObjectVersion::STATUS_ARCHIVED ) ),
                                                                           'language_code' => $editLanguage ) ) );

        $conflictVersions = array();
        foreach ( array_keys( $versions ) as $key )
        {
            $version =& $versions[$key];
            if ( $version->attribute( 'modified' ) > $this->attribute( 'created' ) )
            {
                $conflictVersions[] = $version;
            }
        }
        if ( !count( $conflictVersions ) )
        {
            return false;
        }

        return $conflictVersions;
    }
function hasConflicts ( $ editLanguage = false ) { $ object = $ this -> contentObject ( ) ; if ( ! $ editLanguage ) $ editLanguage = $ this -> initialLanguageCode ( ) ; // Get versions (with published or archived status) $ versions = $ object -> versions ( true , array ( 'conditions' => array ( 'status' => array ( array ( eZContentObjectVersion :: STATUS_PUBLISHED , eZContentObjectVersion :: STATUS_ARCHIVED ) ) , 'language_code' => $ editLanguage ) ) ) ; $ conflictVersions = array ( ) ; foreach ( array_keys ( $ versions ) as $ key ) { $ version = & $ versions [ $ key ] ; if ( $ version -> attribute ( 'modified' ) > $ this -> attribute ( 'created' ) ) { $ conflictVersions [ ] = $ version ; } } if ( ! count ( $ conflictVersions ) ) { return false ; } return $ conflictVersions ; }
\return  array of version objects that caused conflict or false.
\ return array of version objects that caused conflict or false .