function setBorder($border) {
        if ($border === self::CONSOLE_TABLE_BORDER_ASCII) {
            $intersection = '+';
            $horizontal = '-';
            $vertical = '|';
        } else {
            if (is_string($border)) {
                $intersection = $horizontal = $vertical = $border;
            } else {
                if ($border == '') {
                    $intersection = $horizontal = $vertical = '';
                } else {
                    extract($border);
                }
            }
        }

        $this->_border = array(
            'intersection' => $intersection,
            'horizontal' => $horizontal,
            'vertical' => $vertical,
        );
    }
function setBorder($border) {
        if ($border === self::CONSOLE_TABLE_BORDER_ASCII) {
            $intersection = '+';
            $horizontal = '-';
            $vertical = '|';
        } else {
            if (is_string($border)) {
                $intersection = $horizontal = $vertical = $border;
            } else {
                if ($border == '') {
                    $intersection = $horizontal = $vertical = '';
                } else {
                    extract($border);
                }
            }
        }

        $this->_border = array(
            'intersection' => $intersection,
            'horizontal' => $horizontal,
            'vertical' => $vertical,
        );
    }
function setBorder ( $ border ) { if ( $ border === self :: CONSOLE_TABLE_BORDER_ASCII ) { $ intersection = '+' ; $ horizontal = '-' ; $ vertical = '|' ; } else { if ( is_string ( $ border ) ) { $ intersection = $ horizontal = $ vertical = $ border ; } else { if ( $ border == '' ) { $ intersection = $ horizontal = $ vertical = '' ; } else { extract ( $ border ) ; } } } $ this -> _border = array ( 'intersection' => $ intersection , 'horizontal' => $ horizontal , 'vertical' => $ vertical , ) ; }
Set the table border settings

Border definition modes:
- self::CONSOLE_TABLE_BORDER_ASCII: Default border with +, - and |
- array with keys "intersection", "horizontal" and "vertical"
- single character string that sets all three of the array keys

@param mixed $border Border definition

@return void
@see $_border
Set the table border settings