summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fd16381)
raw | patch | inline | side by side (parent: fd16381)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 26 Jan 2010 09:29:20 +0000 (09:29 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 26 Jan 2010 09:29:20 +0000 (09:29 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15300 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/utils/excel/class.writeexcel_format.inc.php | patch | blob | history | |
gosa-core/include/utils/excel/class.writeexcel_worksheet.inc.php | patch | blob | history |
diff --git a/gosa-core/include/utils/excel/class.writeexcel_format.inc.php b/gosa-core/include/utils/excel/class.writeexcel_format.inc.php
index 144923f41df6e22ded63f5cf4dcedbd6f04064a0..c7659a124a2ec0d9ef4ec9a0b56ace1b84af92b4 100644 (file)
// Set properties passed to writeexcel_workbook::addformat()
if (sizeof($_)>0) {
- call_user_method_array('set_properties', $this, $_);
+ call_user_func_array(array($this, 'set_properties'), $_);
}
}
diff --git a/gosa-core/include/utils/excel/class.writeexcel_worksheet.inc.php b/gosa-core/include/utils/excel/class.writeexcel_worksheet.inc.php
index c949acb06566a3935058a5130197df4f54714064..ce10e77b4e22aa6a7198868417d8b1928344d940 100644 (file)
# Match an array ref.
if (is_array($token)) {
- return call_user_method_array('write_row', $this, $_);
+ return call_user_func_array(array($this, 'write_row'), $_);
}
# Match number
if (preg_match('/^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/', $token)) {
- return call_user_method_array('write_number', $this, $_);
+ return call_user_func_array(array($this, 'write_number'), $_);
}
# Match http, https or ftp URL
elseif (preg_match('|^[fh]tt?ps?://|', $token)) {
- return call_user_method_array('write_url', $this, $_);
+ return call_user_func_array(array($this, 'write_url'), $_);
}
# Match mailto:
elseif (preg_match('/^mailto:/', $token)) {
- return call_user_method_array('write_url', $this, $_);
+ return call_user_func_array(array($this, 'write_url'), $_);
}
# Match internal or external sheet link
elseif (preg_match('[^(?:in|ex)ternal:]', $token)) {
- return call_user_method_array('write_url', $this, $_);
+ return call_user_func_array(array($this, 'write_url'), $_);
}
# Match formula
elseif (preg_match('/^=/', $token)) {
- return call_user_method_array('write_formula', $this, $_);
+ return call_user_func_array(array($this, 'write_formula'), $_);
}
# Match blank
elseif ($token == '') {
array_splice($_, 2, 1); # remove the empty string from the parameter list
- return call_user_method_array('write_blank', $this, $_);
+ return call_user_func_array(array($this, 'write_blank'), $_);
}
# Default: match string
else {
- return call_user_method_array('write_string', $this, $_);
+ return call_user_func_array(array($this, 'write_string'), $_);
}
}
}
# Add start row and col to arg list
- return call_user_method_array('write_url_range', $this,
- array_merge(array($_[0], $_[1]), $_));
+ return call_user_func_array(array($this, 'write_url_range'),
+ array_merge(array($_[0], $_[1]), $_));
}
###############################################################################
# Check for internal/external sheet links or default to web link
if (preg_match('[^internal:]', $url)) {
- return call_user_method_array('_write_url_internal', $this, $_);
+ return call_user_func_array(array($this, '_write_url_internal'), $_);
}
if (preg_match('[^external:]', $url)) {
- return call_user_method_array('_write_url_external', $this, $_);
+ return call_user_func_array(array($this, '_write_url_external'), $_);
}
- return call_user_method_array('_write_url_web', $this, $_);
+ return call_user_func_array(array($this, '_write_url_web'), $_);
}
###############################################################################
# Network drives are different. We will handle them separately
# MS/Novell network drives and shares start with \\
if (preg_match('[^external:\\\\]', $_[4])) {
- return call_user_method_array('_write_url_external_net', $this, $_);
+ return call_user_func_array(array($this, '_write_url_external_net'), $_);
}
$record = 0x01B8; # Record identifier