function __construct($sheetId, $sheetName) { parent::__construct($sheetId); $this->name = $sheetName; $this->col = []; $this->row = []; }
/** * @return array */ function getStyles() { $styles = parent::getStyles(); if ($this->isHidden()) { $styles[] = 'hidden-row'; } return $styles; }
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"; } }
function __construct($colid) { parent::__construct($colid); $this->default_cell_style = ""; $this->collapse = false; }