suite paramètres

This commit is contained in:
Jephté Clain 2024-11-30 05:59:20 +04:00
parent 4468c648da
commit 71ca020b1e
3 changed files with 23 additions and 32 deletions

View File

@ -4,7 +4,27 @@ namespace nulib\ext\spout;
use OpenSpout\Common\Entity\Style\Color; use OpenSpout\Common\Entity\Style\Color;
class ref_params { class ref_params {
public const COLORS = [ const READER = [
];
const WRITER = [
"->setColumnWidth" => ["float", ["int", null]],
"->setColumnWidthForRange" => ["int", "int", "int"],
"default_column_width" => "float",
"default_row_height" => "float",
"default_row_style" => self::STYLE,
];
const SHEET = [
"->setName" => ["string"],
"-setIsVisible" => ["bool"],
"header_style" => self::STYLE,
"odd_style" => self::STYLE,
"even_style" => self::STYLE,
"different_odd_even" => "bool",
];
const COLORS = [
"black" => Color::BLACK, "black" => Color::BLACK,
"white" => Color::WHITE, "white" => Color::WHITE,
"red" => Color::RED, "red" => Color::RED,

View File

@ -2,23 +2,4 @@
namespace nulib\ext\spout; namespace nulib\ext\spout;
class ref_params_ods extends ref_params { class ref_params_ods extends ref_params {
const READER = [
];
const WRITER = [
"->setColumnWidth" => ["float", ["int", null]],
"->setColumnWidthForRange" => ["int", "int", "int"],
"default_column_width" => "float",
"default_row_height" => "float",
"default_row_style" => self::STYLE,
];
const SHEET = [
"->setName" => ["string"],
"-setIsVisible" => ["bool"],
"header_style" => self::STYLE,
"odd_style" => self::STYLE,
"even_style" => self::STYLE,
"different_odd_even" => "bool",
];
} }

View File

@ -2,21 +2,11 @@
namespace nulib\ext\spout; namespace nulib\ext\spout;
class ref_params_xlsx extends ref_params { class ref_params_xlsx extends ref_params {
const READER = [
];
const WRITER = [
"->setColumnWidth" => ["float", ["int", null]],
"->setColumnWidthForRange" => ["int", "int", "int"],
"default_column_width" => "float",
"default_row_height" => "float",
"default_row_style" => self::STYLE,
];
const SHEET = [ const SHEET = [
"view" => self::SHEET_VIEW,
# copie de parent::SHEET
"->setName" => ["string"], "->setName" => ["string"],
"-setIsVisible" => ["bool"], "-setIsVisible" => ["bool"],
"view" => self::SHEET_VIEW,
"header_style" => self::STYLE, "header_style" => self::STYLE,
"odd_style" => self::STYLE, "odd_style" => self::STYLE,
"even_style" => self::STYLE, "even_style" => self::STYLE,