コード例 #1
0
ファイル: Console.php プロジェクト: nomaanp/zf2rapid
 /**
  * Write a box at the specified coordinates.
  * If X or Y coordinate value is negative, it will be calculated as the distance from far right or bottom edge
  * of the console (respectively).
  *
  * @param int      $x1          Top-left corner X coordinate (column)
  * @param int      $y1          Top-left corner Y coordinate (row)
  * @param int      $x2          Bottom-right corner X coordinate (column)
  * @param int      $y2          Bottom-right corner Y coordinate (row)
  * @param int      $lineStyle   (optional) Box border style.
  * @param int      $fillStyle   (optional) Box fill style or a single character to fill it with.
  * @param int      $color       (optional) Foreground color
  * @param int      $bgColor     (optional) Background color
  * @param null|int $fillColor   (optional) Foreground color of box fill
  * @param null|int $fillBgColor (optional) Background color of box fill
  *
  * @return void
  */
 public function writeBox($x1, $y1, $x2, $y2, $lineStyle = self::LINE_SINGLE, $fillStyle = self::FILL_NONE, $color = null, $bgColor = null, $fillColor = null, $fillBgColor = null)
 {
     $this->adapter->writeBox($x1, $y1, $x2, $y2, $lineStyle, $fillBgColor, $color, $bgColor, $fillColor, $fillBgColor);
 }