reference/xlswriter/xlsx-kernel/set-row.xml
8fc3f2a5728adba894b9f926d92af575d025519f
...
...
@@ -16,7 +16,7 @@
16
16
<methodparam choice="opt"><type>resource</type><parameter>format</parameter></methodparam>
17
17
</methodsynopsis>
18
18
<para>
19
-
Set the format of the column.
19
+
Set the format of the row.
20
20
</para>
21
21
</refsect1>
22
22

...
...
@@ -60,7 +60,7 @@
60
60
<refsect1 role="examples">
61
61
&reftitle.examples;
62
62
<example>
63
-
<title>example</title>
63
+
<title>setRow example</title>
64
64
<programlisting role="php">
65
65
<![CDATA[
66
66
<?php
...
...
@@ -68,16 +68,15 @@ $config = [
68
68
'path' => './tests'
69
69
];
70
70

71
-
$excel = new \Vtiful\Kernel\Excel($config);
71
+
$excel = new \Vtiful\Kernel\Excel($config);
72
+
$excel->fileName('tutorial01.xlsx');
72
73

73
-
$fileObject = $excel->fileName('tutorial01.xlsx');
74
-
$fileHandle = $fileObject->getHandle();
74
+
$format = new \Vtiful\Kernel\Format($excel->getHandle());
75
+
$boldStyle = $format->bold()->toResource();
75
76

76
-
$boldStyle = \Vtiful\Kernel\Format::bold($fileHandle);
77
-

78
-
$fileObject->header(['name', 'age'])
77
+
$excel->header(['name', 'age'])
79
78
->data([['viest', 21]])
80
-
->setRow('A1', 20, $boldStyle,)
79
+
->setRow('A1', 20, $boldStyle)
81
80
->output();
82
81
]]>
83
82
</programlisting>
84
83