コード例 #1
0
ファイル: Sheet.php プロジェクト: Appizy/appizy
 function __construct($sheetId, $sheetName)
 {
     parent::__construct($sheetId);
     $this->name = $sheetName;
     $this->col = [];
     $this->row = [];
 }
コード例 #2
0
ファイル: Row.php プロジェクト: Appizy/appizy
 /**
  * Row constructor.
  * @param int $sheet_ind
  * @param int $row_ind
  * @param array $options
  */
 function __construct($sheet_ind, $row_ind, $options)
 {
     parent::__construct($row_ind);
     $this->sheet_ind = $sheet_ind;
     $this->name = 's' . $sheet_ind . 'r' . $row_ind;
     $this->cells = [];
     if (isset($options['collapse'])) {
         $this->collapse = $options['collapse'];
     }
     if (isset($options['style'])) {
         $this->addStyle($options['style']);
     }
 }
コード例 #3
0
ファイル: Cell.php プロジェクト: Appizy/appizy
 function __construct($sheet, $row, $col, $options = array())
 {
     parent::__construct($col);
     $this->coord = array('sheet' => $sheet, 'row' => $row, 'col' => $col);
     if (isset($options['style'])) {
         $this->addStyle($options['style']);
     }
     $this->value_disp = isset($options['value_disp']) ? $options['value_disp'] : "";
     $this->value_attr = isset($options['value_attr']) ? $options['value_attr'] : "";
     $this->type = isset($options['type']) ? $options['type'] : "text";
     $this->value_type = isset($options['value_type']) ? $options['value_type'] : "string";
     $this->rowspan = (int) isset($options['rowspan']) ? $options['rowspan'] : 1;
     $this->colspan = (int) isset($options['colspan']) ? $options['colspan'] : 1;
     $this->validation = isset($options['validation']) ? $options['validation'] : null;
     $this->collapse = false;
     $this->value_inlist = array();
     $this->annotation = isset($options['annotation']) ? $options['annotation'] : '';
     if (isset($options['formula'])) {
         $this->formula = $options['formula'];
         $this->type = "out";
     }
 }
コード例 #4
0
ファイル: Column.php プロジェクト: Appizy/appizy
 function __construct($colid)
 {
     parent::__construct($colid);
     $this->default_cell_style = "";
     $this->collapse = false;
 }