kernel/content/ezcontentpublishingbehaviour.php
public static function getBehaviour()
    {
        if ( self::$behaviour === null )
        {
            $return = new ezpContentPublishingBehaviour;
        }
        else
        {
            $return = clone self::$behaviour;
            if ( self::$behaviour->isTemporary )
            {
                self::$behaviour = null;
            }
        }
        return $return;
    }
public static function getBehaviour()
    {
        if ( self::$behaviour === null )
        {
            $return = new ezpContentPublishingBehaviour;
        }
        else
        {
            $return = clone self::$behaviour;
            if ( self::$behaviour->isTemporary )
            {
                self::$behaviour = null;
            }
        }
        return $return;
    }
public static function getBehaviour ( ) { if ( self :: $ behaviour === null ) { $ return = new ezpContentPublishingBehaviour ; } else { $ return = clone self :: $ behaviour ; if ( self :: $ behaviour -> isTemporary ) { self :: $ behaviour = null ; } } return $ return ; }
Get the currently set behaviour. Returns the default one if one ain't set

@return ezpContentPublishingBehaviour
Get the currently set behaviour . Returns the default one if one ain t set