lib/PHPRtfLite/Border.php
public static function create(PHPRtfLite $rtf, $size = 0, $color = null, $type = null, $space = 0.0,
                                  $left = true, $top = true, $right = true, $bottom = true)
    {
        $border = new self($rtf);
        $border->setBorders(new PHPRtfLite_Border_Format($size, $color, $type, $space), $left, $top, $right, $bottom);

        return $border;
    }
public static function create(PHPRtfLite $rtf, $size = 0, $color = null, $type = null, $space = 0.0,
                                  $left = true, $top = true, $right = true, $bottom = true)
    {
        $border = new self($rtf);
        $border->setBorders(new PHPRtfLite_Border_Format($size, $color, $type, $space), $left, $top, $right, $bottom);

        return $border;
    }
public static function create ( PHPRtfLite $ rtf , $ size = 0 , $ color = null , $ type = null , $ space = 0.0 , $ left = true , $ top = true , $ right = true , $ bottom = true ) { $ border = new self ( $ rtf ) ; $ border -> setBorders ( new PHPRtfLite_Border_Format ( $ size , $ color , $ type , $ space ) , $ left , $ top , $ right , $ bottom ) ; return $ border ; }
creates border by defining border format

@param   PHPRtfLite  $rtf
@param   integer     $size   size of border
@param   string      $color  color of border (example '#ff0000' or '#f00')
@param   string      $type   represented by class constants PHPRtfLite_Border_Format::TYPE_*<br>
Possible values:<br>
PHPRtfLite_Border_Format::TYPE_SINGLE  'single'<br>
PHPRtfLite_Border_Format::TYPE_DOT     'dot'<br>
PHPRtfLite_Border_Format::TYPE_DASH    'dash'<br>
PHPRtfLite_Border_Format::TYPE_DOTDASH 'dotdash'
@param   float       $space  space between borders and the paragraph
@param   boolean     $left   left border
@param   boolean     $top    top border
@param   boolean     $right  right border
@param   boolean     $bottom bottom border
@return  PHPRtfLite_Border
creates border by defining border format