function onPublish( $contentObjectAttribute, $contentObject, $publishedNodes )
    {
        eZDebug::writeDebug( 'Start', __METHOD__ );
        $paex = $contentObjectAttribute->content();
        if ( !$paex instanceof eZPaEx )
        {
            return true;
        }

        // Update empty paex data from parent paex
        // NOTE: if the current user don't have permission to edit paex data, and is
        // creating a new object (publishing version 1), force paex object update
        // to get values set in parent
        if ( !$paex->canEdit() && $contentObject->attribute( 'current_version' ) == 1 )
            $paex->updateFromParent( true );
        else
            $paex->updateFromParent();

        eZDebug::writeDebug( 'End', __METHOD__ );
        return true;
    }
function onPublish( $contentObjectAttribute, $contentObject, $publishedNodes )
    {
        eZDebug::writeDebug( 'Start', __METHOD__ );
        $paex = $contentObjectAttribute->content();
        if ( !$paex instanceof eZPaEx )
        {
            return true;
        }

        // Update empty paex data from parent paex
        // NOTE: if the current user don't have permission to edit paex data, and is
        // creating a new object (publishing version 1), force paex object update
        // to get values set in parent
        if ( !$paex->canEdit() && $contentObject->attribute( 'current_version' ) == 1 )
            $paex->updateFromParent( true );
        else
            $paex->updateFromParent();

        eZDebug::writeDebug( 'End', __METHOD__ );
        return true;
    }
function onPublish ( $ contentObjectAttribute , $ contentObject , $ publishedNodes ) { eZDebug :: writeDebug ( 'Start' , __METHOD__ ) ; $ paex = $ contentObjectAttribute -> content ( ) ; if ( ! $ paex instanceof eZPaEx ) { return true ; } // Update empty paex data from parent paex // NOTE: if the current user don't have permission to edit paex data, and is // creating a new object (publishing version 1), force paex object update // to get values set in parent if ( ! $ paex -> canEdit ( ) && $ contentObject -> attribute ( 'current_version' ) == 1 ) $ paex -> updateFromParent ( true ) ; else $ paex -> updateFromParent ( ) ; eZDebug :: writeDebug ( 'End' , __METHOD__ ) ; return true ; }
Get empty paex data values from parent.

@return bool True if the value was stored correctly.
Get empty paex data values from parent .