mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 18:02:18 +00:00
Fixed PHP7 Depecated Warnings
This commit is contained in:
@@ -88,7 +88,7 @@ class Spreadsheet_Excel_Writer_BIFFwriter extends PEAR
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
function Spreadsheet_Excel_Writer_BIFFwriter()
|
||||
function __construct()
|
||||
{
|
||||
$this->_byte_order = '';
|
||||
$this->_data = '';
|
||||
|
||||
@@ -43,10 +43,10 @@ class OLE_PPS_File extends OLE_PPS
|
||||
* @param string $name The name of the file (in Unicode)
|
||||
* @see OLE::Asc2Ucs()
|
||||
*/
|
||||
function OLE_PPS_File($name)
|
||||
function __construct($name)
|
||||
{
|
||||
$this->_tmp_dir = '';
|
||||
$this->OLE_PPS(
|
||||
parent::__construct(
|
||||
null,
|
||||
$name,
|
||||
OLE_PPS_TYPE_FILE,
|
||||
|
||||
@@ -248,7 +248,7 @@ class Spreadsheet_Excel_Writer_Format extends PEAR
|
||||
* @param integer $index the XF index for the format.
|
||||
* @param array $properties array with properties to be set on initialization.
|
||||
*/
|
||||
function Spreadsheet_Excel_Writer_Format($BIFF_version, $index = 0, $properties = array())
|
||||
function __construct($BIFF_version, $index = 0, $properties = array())
|
||||
{
|
||||
$this->_xf_index = $index;
|
||||
$this->_BIFF_version = $BIFF_version;
|
||||
@@ -431,12 +431,12 @@ class Spreadsheet_Excel_Writer_Format extends PEAR
|
||||
//$rotation = 0x00;
|
||||
//oesi fix rotation mit utf8
|
||||
switch($this->_rotation)
|
||||
{
|
||||
case 0: $rotation = 0; break;
|
||||
case 1: $rotation = 255; break;
|
||||
case 2: $rotation = 90; break;
|
||||
case 3: $rotation = 180; break;
|
||||
default: $rotation = 0; break;
|
||||
{
|
||||
case 0: $rotation = 0; break;
|
||||
case 1: $rotation = 255; break;
|
||||
case 2: $rotation = 90; break;
|
||||
case 3: $rotation = 180; break;
|
||||
default: $rotation = 0; break;
|
||||
}
|
||||
$biff8_options = 0x00;
|
||||
$data = pack("vvvC", $ifnt, $ifmt, $style, $align);
|
||||
|
||||
@@ -57,7 +57,7 @@ class OLE extends PEAR
|
||||
* Remember to use ampersand when creating an OLE object ($my_ole =& new OLE();)
|
||||
* @access public
|
||||
*/
|
||||
function OLE()
|
||||
function __construct()
|
||||
{
|
||||
$this->_list = array();
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ class PEAR
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function PEAR($error_class = null)
|
||||
function __construct($error_class = null)
|
||||
{
|
||||
$classname = strtolower(get_class($this));
|
||||
if ($this->_debug) {
|
||||
@@ -842,7 +842,7 @@ class PEAR_Error
|
||||
* @access public
|
||||
*
|
||||
*/
|
||||
function PEAR_Error($message = 'unknown error', $code = null,
|
||||
function __construct($message = 'unknown error', $code = null,
|
||||
$mode = null, $options = null, $userinfo = null)
|
||||
{
|
||||
if ($mode === null) {
|
||||
|
||||
@@ -116,7 +116,7 @@ class OLE_PPS extends PEAR
|
||||
* @param integer $time_2nd A timestamp
|
||||
* @param array $children Array containing children PPS for this PPS
|
||||
*/
|
||||
function OLE_PPS($No, $name, $type, $prev, $next, $dir, $time_1st, $time_2nd, $data, $children)
|
||||
function __construct($No, $name, $type, $prev, $next, $dir, $time_1st, $time_2nd, $data, $children)
|
||||
{
|
||||
$this->No = $No;
|
||||
$this->Name = $name;
|
||||
|
||||
@@ -164,7 +164,7 @@ class Spreadsheet_Excel_Writer_Parser extends PEAR
|
||||
* @param integer $byte_order The byte order (Little endian or Big endian) of the architecture
|
||||
(optional). 1 => big endian, 0 (default) little endian.
|
||||
*/
|
||||
function Spreadsheet_Excel_Writer_Parser($byte_order, $biff_version)
|
||||
function __construct($byte_order, $biff_version)
|
||||
{
|
||||
$this->_current_char = 0;
|
||||
$this->_BIFF_version = $biff_version;
|
||||
|
||||
@@ -43,11 +43,11 @@ class OLE_PPS_Root extends OLE_PPS
|
||||
* @param integer $time_1st A timestamp
|
||||
* @param integer $time_2nd A timestamp
|
||||
*/
|
||||
function OLE_PPS_Root($time_1st, $time_2nd, $raChild)
|
||||
function __construct($time_1st, $time_2nd, $raChild)
|
||||
{
|
||||
$ole_obj = new OLE();
|
||||
$this->_tmp_dir = '';
|
||||
$this->OLE_PPS(
|
||||
parent::__construct(
|
||||
null,
|
||||
$ole_obj->Asc2Ucs('Root Entry'),
|
||||
OLE_PPS_TYPE_ROOT,
|
||||
|
||||
@@ -66,7 +66,7 @@ class Spreadsheet_Excel_Writer_Validator
|
||||
*/
|
||||
var $_parser;
|
||||
|
||||
function Spreadsheet_Excel_Writer_Validator(&$parser)
|
||||
function __construct(&$parser)
|
||||
{
|
||||
$this->_parser = $parser;
|
||||
$this->_type = 0x01; // FIXME: add method for setting datatype
|
||||
|
||||
@@ -171,10 +171,10 @@ class Spreadsheet_Excel_Writer_Workbook extends Spreadsheet_Excel_Writer_BIFFwri
|
||||
* @param string filename for storing the workbook. "-" for writing to stdout.
|
||||
* @access public
|
||||
*/
|
||||
function Spreadsheet_Excel_Writer_Workbook($filename)
|
||||
function __construct($filename)
|
||||
{
|
||||
// It needs to call its parent's constructor explicitly
|
||||
$this->Spreadsheet_Excel_Writer_BIFFwriter();
|
||||
parent::__construct();
|
||||
|
||||
$this->_filename = $filename;
|
||||
$this->_parser = new Spreadsheet_Excel_Writer_Parser($this->_byte_order, $this->_BIFF_version);
|
||||
|
||||
@@ -364,14 +364,14 @@ class Spreadsheet_Excel_Writer_Worksheet extends Spreadsheet_Excel_Writer_BIFFwr
|
||||
* @param mixed &$parser The formula parser created for the Workbook
|
||||
* @access private
|
||||
*/
|
||||
function Spreadsheet_Excel_Writer_Worksheet($BIFF_version, $name,
|
||||
function __construct($BIFF_version, $name,
|
||||
$index, &$activesheet,
|
||||
&$firstsheet, &$str_total,
|
||||
&$str_unique, &$str_table,
|
||||
&$url_format, &$parser)
|
||||
{
|
||||
// It needs to call its parent's constructor explicitly
|
||||
$this->Spreadsheet_Excel_Writer_BIFFwriter();
|
||||
parent::__construct();
|
||||
$this->_BIFF_version = $BIFF_version;
|
||||
$rowmax = 65536; // 16384 in Excel 5
|
||||
$colmax = 256;
|
||||
|
||||
@@ -49,10 +49,10 @@ class Spreadsheet_Excel_Writer extends Spreadsheet_Excel_Writer_Workbook
|
||||
* @param string $filename The optional filename for the Workbook.
|
||||
* @return Spreadsheet_Excel_Writer_Workbook The Workbook created
|
||||
*/
|
||||
function Spreadsheet_Excel_Writer($filename = '')
|
||||
function __construct($filename = '')
|
||||
{
|
||||
$this->_filename = $filename;
|
||||
$this->Spreadsheet_Excel_Writer_Workbook($filename);
|
||||
parent::__construct($filename);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user