3030class Cetak
3131{
3232 /**
33- * Cetak Dokumen .
33+ * Print a document .
3434 *
35- * @param string $jenis kak|spj|sk|st|dpr|spd|bon
36- * @param collection $model
37- * @param string $filename
38- * @return string
35+ * @param string $jenis The type of document (kak|spj|sk|st|dpr|spd|bon)
36+ * @param collection $model The model collection
37+ * @param string $filename The filename for the document
38+ * @param int $template_id The template ID
39+ * @param string|null $tanggal The date (optional)
40+ * @param string|null $pengelola The manager (optional)
41+ * @return string The filename of the saved document
42+ * @throws \Exception
3943 */
4044 public static function cetak ($ jenis , $ models , $ filename , $ template_id , $ tanggal = null , $ pengelola = null )
4145 {
@@ -65,9 +69,13 @@ public static function cetak($jenis, $models, $filename, $template_id, $tanggal
6569 }
6670
6771 /**
68- * Ambil TemplateProsessor .
72+ * Get the TemplateProcessor .
6973 *
70- * @param string $jenis kak|spj|sk|st|dpr|spd|bon
74+ * @param string $jenis The type of document (kak|spj|sk|st|dpr|spd|bon)
75+ * @param int $id The ID of the model
76+ * @param int $template_id The template ID
77+ * @param string|null $tanggal The date (optional)
78+ * @param string|null $pengelola The manager (optional)
7179 * @return TemplateProcessor
7280 */
7381 public static function getTemplate (string $ jenis , $ id , $ template_id , $ tanggal , $ pengelola )
@@ -169,7 +177,7 @@ public static function getTemplate(string $jenis, $id, $template_id, $tanggal, $
169177 }
170178
171179 /**
172- * Ambil XML dari dokumen utama .
180+ * Get the XML from the main document .
173181 *
174182 * @param TemplateProcessor $templateProcessor
175183 * @return string
@@ -180,7 +188,7 @@ public static function getMainXml($templateProcessor)
180188 }
181189
182190 /**
183- * Ambil XML dari dokumen yangakan digabung .
191+ * Get the XML from the document to be merged .
184192 *
185193 * @param TemplateProcessor $templateProcessor
186194 * @return string
@@ -195,9 +203,9 @@ public static function getModifiedInnerXml($templateProcessor)
195203 }
196204
197205 /**
198- * Format nilai KAK.
206+ * Format the KAK values .
199207 *
200- * @param string $id
208+ * @param string $id The ID of the KAK
201209 * @return array
202210 */
203211 public static function kak ($ id )
@@ -409,9 +417,9 @@ public static function kuitansi($id)
409417 }
410418
411419 /**
412- * Format nilai SPJ.
420+ * Format the SPJ values .
413421 *
414- * @param string $id
422+ * @param string $id The ID of the SPJ
415423 * @return array
416424 */
417425 public static function spj ($ id )
0 commit comments