src/Handler/HeaderHandler.php
public static function formatAttributes($destroy_callback = null, $create_callback = null, $sticky = null, $life = null, $classname = null, $width = null)
    {
        $options = [];

        if ($destroy_callback !== null)
        {
            $options['destroyed'] = $destroy_callback;
        } // if

        if ($create_callback !== null)
        {
            $options['created'] = $create_callback;
        } // if

        if ($sticky !== null)
        {
            $options['sticky'] = !!$sticky;
        } // if

        if ($life !== null)
        {
            $options['life'] = $life;
        } // if

        if ($classname !== null)
        {
            $options['className'] = $classname;
        } // if

        if ($width !== null)
        {
            $options['width'] = $width;
        } // if

        return $options;
    }
public static function formatAttributes($destroy_callback = null, $create_callback = null, $sticky = null, $life = null, $classname = null, $width = null)
    {
        $options = [];

        if ($destroy_callback !== null)
        {
            $options['destroyed'] = $destroy_callback;
        } // if

        if ($create_callback !== null)
        {
            $options['created'] = $create_callback;
        } // if

        if ($sticky !== null)
        {
            $options['sticky'] = !!$sticky;
        } // if

        if ($life !== null)
        {
            $options['life'] = $life;
        } // if

        if ($classname !== null)
        {
            $options['className'] = $classname;
        } // if

        if ($width !== null)
        {
            $options['width'] = $width;
        } // if

        return $options;
    }
public static function formatAttributes ( $ destroy_callback = null , $ create_callback = null , $ sticky = null , $ life = null , $ classname = null , $ width = null ) { $ options = [ ] ; if ( $ destroy_callback !== null ) { $ options [ 'destroyed' ] = $ destroy_callback ; } // if if ( $ create_callback !== null ) { $ options [ 'created' ] = $ create_callback ; } // if if ( $ sticky !== null ) { $ options [ 'sticky' ] = ! ! $ sticky ; } // if if ( $ life !== null ) { $ options [ 'life' ] = $ life ; } // if if ( $ classname !== null ) { $ options [ 'className' ] = $ classname ; } // if if ( $ width !== null ) { $ options [ 'width' ] = $ width ; } // if return $ options ; }
Static method for retrieving the options-array.

@param   string  $destroy_callback
@param   string  $create_callback
@param   boolean $sticky
@param   integer $life
@param   string  $classname
@param   integer $width

@return  array
Static method for retrieving the options - array .