|
Moodle
2.2.1
http://www.collinsharper.com
|


Definition at line 45 of file Format.php.
| _getColor | ( | $ | name_color = '' | ) |
Used in conjunction with the set_xxx_color methods to convert a color string into a number. Color range is 0..63 but we will restrict it to 8..63 to comply with Gnumeric. Colors 0..7 are repeated in 8..15.
private
| string | $name_color | name of the color (i.e.: 'blue', 'red', etc..). Optional. |
Definition at line 533 of file Format.php.

| getFont | ( | ) |
Generate an Excel BIFF FONT record.
Definition at line 447 of file Format.php.
| getFontKey | ( | ) |
Returns a unique hash key for a font. Used by Spreadsheet_Excel_Writer_Workbook::_storeAllFonts()
The elements that form the key are arranged to increase the probability of generating a unique key. Elements that hold a large range of numbers (eg. _color) are placed between two binary elements such as _italic
Definition at line 503 of file Format.php.
| getXf | ( | $ | style | ) |
Generate an Excel BIFF XF record (style or cell).
| string | $style | The type of the XF record ('style' or 'cell'). |
Definition at line 315 of file Format.php.
| getXfIndex | ( | ) |
Returns the index used by Spreadsheet_Excel_Writer_Worksheet::_XF()
Definition at line 519 of file Format.php.
| setAlign | ( | $ | location | ) |
Set cell alignment.
public
| string | $location | alignment for the cell ('left', 'right', etc...). |
Definition at line 591 of file Format.php.

| setBgColor | ( | $ | color | ) |
Sets the cell's background color
public
| mixed | $color | either a string (like 'blue'), or an integer (range is [8...63]). |
Definition at line 908 of file Format.php.

| setBold | ( | $ | weight = 1 | ) |
Sets the boldness of the text. Bold has a range 100..1000. 0 (400) is normal. 1 (700) is bold.
public
| integer | $weight | Weight for the text, 0 maps to 400 (normal text), 1 maps to 700 (bold text). Valid range is: 100-1000. It's Optional, default is 1 (bold). |
Definition at line 737 of file Format.php.
| setBorder | ( | $ | style | ) |
Set cells borders to the same style
public
| integer | $style | style to apply for all cell borders. 1 => thin, 2 => thick. |
Definition at line 810 of file Format.php.

| setBorderColor | ( | $ | color | ) |
Sets all the cell's borders to the same color
public
| mixed | $color | The color we are setting. Either a string (like 'blue'), or an integer (range is [8...63]). |
Definition at line 830 of file Format.php.

| setBottom | ( | $ | style | ) |
Sets the width for the bottom border of the cell
public
| integer | $style | style of the cell border. 1 => thin, 2 => thick. |
Definition at line 765 of file Format.php.

| setBottomColor | ( | $ | color | ) |
Sets the cell's bottom border color
public
| mixed | $color | either a string (like 'blue'), or an integer (range is [8...63]). |
Definition at line 844 of file Format.php.


| setColor | ( | $ | color | ) |
Sets the cell's color
public
| mixed | $color | either a string (like 'blue'), or an integer (range is [8...63]). |
Definition at line 923 of file Format.php.

| setFgColor | ( | $ | color | ) |
Sets the cell's foreground color
public
| mixed | $color | either a string (like 'blue'), or an integer (range is [8...63]). |
Definition at line 893 of file Format.php.

| setFontFamily | ( | $ | font_family | ) |
Sets the font family name.
public
| string | $fontfamily | The font family name. Possible values are: 'Times New Roman', 'Arial', 'Courier'. |
Definition at line 1097 of file Format.php.
| setHAlign | ( | $ | location | ) |
Set cell horizontal alignment.
public
| string | $location | alignment for the cell ('left', 'right', etc...). |
Definition at line 649 of file Format.php.
| setItalic | ( | ) |
| setLeft | ( | $ | style | ) |
Sets the width for the left border of the cell
public
| integer | $style | style of the cell left border. 1 => thin, 2 => thick. |
Definition at line 787 of file Format.php.

| setLeftColor | ( | $ | color | ) |
Sets the cell's left border color
public
| mixed | $color | either a string (like 'blue'), or an integer (range is [8...63]). |
Definition at line 868 of file Format.php.


| setLocked | ( | ) |
| setMerge | ( | ) |
This is an alias for the unintuitive setAlign('merge')
public
Definition at line 722 of file Format.php.

| setNumFormat | ( | $ | num_format | ) |
Sets the numeric format. It can be date, time, currency, etc...
public
| integer | $num_format | The numeric format. |
Definition at line 1023 of file Format.php.
| setOutLine | ( | ) |
| setPattern | ( | $ | arg = 1 | ) |
Sets the fill pattern attribute of a cell
public
| integer | $arg | Optional. Defaults to 1. Meaningful values are: 0-18, 0 meaning no background. |
Definition at line 936 of file Format.php.
| setRight | ( | $ | style | ) |
Sets the width for the right border of the cell
public
| integer | $style | style of the cell right border. 1 => thin, 2 => thick. |
Definition at line 798 of file Format.php.

| setRightColor | ( | $ | color | ) |
Sets the cell's right border color
public
| mixed | $color | either a string (like 'blue'), or an integer (range is [8...63]). |
Definition at line 880 of file Format.php.


| setScript | ( | $ | script | ) |
Sets the script type of the text
public
| integer | $script | The value for script type. Possible values are: 1 => superscript, 2 => subscript. |
Definition at line 1065 of file Format.php.
| setShadow | ( | ) |
| setSize | ( | $ | size | ) |
Sets the font size
public
| integer | $size | The font size (in pixels I think). |
Definition at line 969 of file Format.php.
| setStrikeOut | ( | ) |
| setTextRotation | ( | $ | angle | ) |
Sets the orientation of the text
public
| integer | $angle | The rotation angle for the text (clockwise). Possible values are: 0, 90, 270 and -1 for stacking top-to-bottom. |
Definition at line 991 of file Format.php.

| setTextWrap | ( | ) |
| setTop | ( | $ | style | ) |
Sets the width for the top border of the cell
public
| integer | $style | style of the cell top border. 1 => thin, 2 => thick. |
Definition at line 776 of file Format.php.

| setTopColor | ( | $ | color | ) |
Sets the cell's top border color
public
| mixed | $color | either a string (like 'blue'), or an integer (range is [8...63]). |
Definition at line 856 of file Format.php.


| setUnderline | ( | $ | underline | ) |
Sets the underline of the text
public
| integer | $underline | The value for underline. Possible values are: 1 => underline, 2 => double underline. |
Definition at line 948 of file Format.php.
| setUnLocked | ( | ) |
Unlocks a cell. Useful for unprotecting particular cells of a protected sheet.
public
Definition at line 1085 of file Format.php.
| setVAlign | ( | $ | location | ) |
Set cell vertical alignment.
public
| string | $location | alignment for the cell ('top', 'vleft', 'vright', etc...). |
Definition at line 689 of file Format.php.
| Spreadsheet_Excel_Writer_Format | ( | $ | BIFF_version, |
| $ | index = 0, |
||
| $ | properties = array() |
||
| ) |
Constructor
private
| integer | $index | the XF index for the format. |
| array | $properties | array with properties to be set on initialization. |
Definition at line 252 of file Format.php.
| $_bg_color |
Definition at line 189 of file Format.php.
| $_bold |
Definition at line 75 of file Format.php.
| $_bottom |
Definition at line 201 of file Format.php.
| $_bottom_color |
Definition at line 207 of file Format.php.
| $_color |
Definition at line 87 of file Format.php.
| $_fg_color |
Definition at line 183 of file Format.php.
| $_font_charset |
Definition at line 129 of file Format.php.
| $_font_family |
Definition at line 123 of file Format.php.
| $_font_name |
Definition at line 63 of file Format.php.
| $_font_outline |
Definition at line 105 of file Format.php.
| $_font_script |
Definition at line 117 of file Format.php.
| $_font_shadow |
Definition at line 111 of file Format.php.
| $_font_strikeout |
Definition at line 99 of file Format.php.
| $_hidden |
Definition at line 141 of file Format.php.
| $_italic |
Definition at line 81 of file Format.php.
| $_left |
Definition at line 225 of file Format.php.
| $_left_color |
Definition at line 231 of file Format.php.
| $_locked |
Definition at line 147 of file Format.php.
| $_num_format |
Definition at line 135 of file Format.php.
| $_pattern |
Definition at line 195 of file Format.php.
| $_right |
Definition at line 237 of file Format.php.
| $_right_color |
Definition at line 243 of file Format.php.
| $_rotation |
Definition at line 177 of file Format.php.
| $_size |
Definition at line 69 of file Format.php.
| $_text_h_align |
Definition at line 153 of file Format.php.
| $_text_justlast |
Definition at line 171 of file Format.php.
| $_text_v_align |
Definition at line 165 of file Format.php.
| $_text_wrap |
Definition at line 159 of file Format.php.
| $_top |
Definition at line 213 of file Format.php.
| $_top_color |
Definition at line 219 of file Format.php.
| $_underline |
Definition at line 93 of file Format.php.
| $_xf_index |
Definition at line 51 of file Format.php.
| $font_index |
Definition at line 57 of file Format.php.