cvs: pear /Spreadsheet_Excel_Writer/Writer Format.php

From: Date: Wed, 01 Oct 2003 13:07:36 +0000
Subject: cvs: pear /Spreadsheet_Excel_Writer/Writer Format.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-13217@lists.php.net to get a copy of this message
xnoguer Wed Oct 1 09:07:36 2003 EDT Modified files: /pear/Spreadsheet_Excel_Writer/Writer Format.php Log: adding setFontFamily() method (Donnie Miller). Index: pear/Spreadsheet_Excel_Writer/Writer/Format.php diff -u pear/Spreadsheet_Excel_Writer/Writer/Format.php:1.18 pear/Spreadsheet_Excel_Writer/Writer/Format.php:1.19 --- pear/Spreadsheet_Excel_Writer/Writer/Format.php:1.18 Fri May 16 16:38:35 2003 +++ pear/Spreadsheet_Excel_Writer/Writer/Format.php Wed Oct 1 09:07:35 2003 @@ -871,7 +871,7 @@ $this->_rotation = 1; break; default : - $this->raiseError("Invalid value for angle.". + return $this->raiseError("Invalid value for angle.". " Possible values are: 0, 90, 270 and -1 ". "for stacking top-to-bottom."); $this->_rotation = 0; @@ -941,6 +941,18 @@ function setUnLocked() { $this->_locked = 0; + } + + /** + * Sets the font family name. + * + * @access public + * @param string $fontfamily The font family name. Possible values are: + * 'Times New Roman', 'Arial', 'Courier'. + */ + function setFontFamily($font_family) + { + $this->_font_name = $font_family; } } ?>

« previous php.pear.cvs (#13217) next »