Оптимизации и исправления топов.
This commit is contained in:
parent
77fa3dbd5e
commit
0f4b2fb722
25 changed files with 109 additions and 53 deletions
|
|
@ -6,7 +6,7 @@ class Excel_DateTime
|
|||
|
||||
function __construct($value)
|
||||
{
|
||||
$this->value = intval($value);
|
||||
$this->value = (int)$value;
|
||||
}
|
||||
|
||||
function getString()
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ class Excel_Number
|
|||
|
||||
function __construct($value)
|
||||
{
|
||||
$this->value = intval($value);
|
||||
$this->value = (int)$value;
|
||||
}
|
||||
|
||||
function getString()
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ class Excel_Table
|
|||
|
||||
function __construct()
|
||||
{
|
||||
$this->name = "Page " . intval(self::$index ++);
|
||||
$this->name = "Page " . ((int)self::$index ++);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -230,7 +230,7 @@ class Excel_Table
|
|||
} else {
|
||||
$doc->writeAttribute('ss:Type', "Number");
|
||||
}
|
||||
$doc->writeCData($this->encode($value));
|
||||
$doc->writeCdata($this->encode($value));
|
||||
}
|
||||
$doc->endElement();
|
||||
$doc->endElement();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue