kernel/content/ezcontentoperationcollection.php
static public function changeTranslationAvailableStatus( $objectID, $status = false )
    {
        $object = eZContentObject::fetch( $objectID );
        if ( !$object->canEdit() )
        {
            return array( 'status' => false );
        }
        if ( $object->isAlwaysAvailable() & $status == false )
        {
            $object->setAlwaysAvailableLanguageID( false );
            eZContentCacheManager::clearContentCacheIfNeeded( $objectID );
        }
        else if ( !$object->isAlwaysAvailable() & $status == true )
        {
            $object->setAlwaysAvailableLanguageID( $object->attribute( 'initial_language_id' ) );
            eZContentCacheManager::clearContentCacheIfNeeded( $objectID );
        }
        return array( 'status' => true );
    }
static public function changeTranslationAvailableStatus( $objectID, $status = false )
    {
        $object = eZContentObject::fetch( $objectID );
        if ( !$object->canEdit() )
        {
            return array( 'status' => false );
        }
        if ( $object->isAlwaysAvailable() & $status == false )
        {
            $object->setAlwaysAvailableLanguageID( false );
            eZContentCacheManager::clearContentCacheIfNeeded( $objectID );
        }
        else if ( !$object->isAlwaysAvailable() & $status == true )
        {
            $object->setAlwaysAvailableLanguageID( $object->attribute( 'initial_language_id' ) );
            eZContentCacheManager::clearContentCacheIfNeeded( $objectID );
        }
        return array( 'status' => true );
    }
static public function changeTranslationAvailableStatus ( $ objectID , $ status = false ) { $ object = eZContentObject :: fetch ( $ objectID ) ; if ( ! $ object -> canEdit ( ) ) { return array ( 'status' => false ) ; } if ( $ object -> isAlwaysAvailable ( ) & $ status == false ) { $ object -> setAlwaysAvailableLanguageID ( false ) ; eZContentCacheManager :: clearContentCacheIfNeeded ( $ objectID ) ; } else if ( ! $ object -> isAlwaysAvailable ( ) & $ status == true ) { $ object -> setAlwaysAvailableLanguageID ( $ object -> attribute ( 'initial_language_id' ) ) ; eZContentCacheManager :: clearContentCacheIfNeeded ( $ objectID ) ; } return array ( 'status' => true ) ; }
Changes the status of a translation

@param int $objectID
@param int $status

@return array An array with operation status, always true
Changes the status of a translation