function setAlign($col_id, $align = self::CONSOLE_TABLE_ALIGN_LEFT) {
        switch ($align) {
            case self::CONSOLE_TABLE_ALIGN_CENTER:
                $pad = STR_PAD_BOTH;
                break;
            case self::CONSOLE_TABLE_ALIGN_RIGHT:
                $pad = STR_PAD_LEFT;
                break;
            default:
                $pad = STR_PAD_RIGHT;
                break;
        }
        $this->_col_align[$col_id] = $pad;
    }
function setAlign($col_id, $align = self::CONSOLE_TABLE_ALIGN_LEFT) {
        switch ($align) {
            case self::CONSOLE_TABLE_ALIGN_CENTER:
                $pad = STR_PAD_BOTH;
                break;
            case self::CONSOLE_TABLE_ALIGN_RIGHT:
                $pad = STR_PAD_LEFT;
                break;
            default:
                $pad = STR_PAD_RIGHT;
                break;
        }
        $this->_col_align[$col_id] = $pad;
    }
function setAlign ( $ col_id , $ align = self :: CONSOLE_TABLE_ALIGN_LEFT ) { switch ( $ align ) { case self :: CONSOLE_TABLE_ALIGN_CENTER : $ pad = STR_PAD_BOTH ; break ; case self :: CONSOLE_TABLE_ALIGN_RIGHT : $ pad = STR_PAD_LEFT ; break ; default : $ pad = STR_PAD_RIGHT ; break ; } $ this -> _col_align [ $ col_id ] = $ pad ; }
Sets the alignment for the columns.

@param integer $col_id The column number.
@param integer $align Alignment to set for this column. One of
self::CONSOLE_TABLE_ALIGN_LEFT
self::CONSOLE_TABLE_ALIGN_CENTER
self::CONSOLE_TABLE_ALIGN_RIGHT.

@return void
Sets the alignment for the columns .