You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
714 B
PHP
28 lines
714 B
PHP
<?php
|
|
namespace xls;
|
|
|
|
use alhimik1986\PhpExcelTemplator\PhpExcelTemplator;
|
|
use alhimik1986\PhpExcelTemplator\params\ExcelParam;
|
|
use alhimik1986\PhpExcelTemplator\params\CallbackParam;
|
|
use alhimik1986\PhpExcelTemplator\setters\CellSetterArrayValueSpecial;
|
|
|
|
class Param {
|
|
private $arr;
|
|
public function __construct(Type $var = null) {
|
|
$this->arr = [];
|
|
}
|
|
|
|
public function add($name = "", $akun){
|
|
$this->arr["[".$name."]"] = new ExcelParam(SPECIAL_ARRAY_TYPE, $akun[$name]);
|
|
return $this;
|
|
}
|
|
|
|
public function single($name = "", $val){
|
|
$this->arr["{".$name."}"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
public function get(){
|
|
return $this->arr;
|
|
}
|
|
}
|