summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cb68e2a)
raw | patch | inline | side by side (parent: cb68e2a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 31 Oct 2006 10:17:42 +0000 (10:17 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 31 Oct 2006 10:17:42 +0000 (10:17 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4972 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/include/class_ldap.inc b/include/class_ldap.inc
index e5809d72099e075eb69c1fdbd23d80e1c098f6b7..7abac71be2ce929979d77759fee04156c60f6fae 100644 (file)
--- a/include/class_ldap.inc
+++ b/include/class_ldap.inc
function gen_xls ($dn, $filter= "(objectClass=*)", $attributes= array('*'), $recursive= TRUE,$r_array=0)
{
- $display= "";
+ $display= array();
$this->cd($dn);
$this->search("$filter");
diff --git a/include/php_writeexcel/class.writeexcel_workbook.inc.php b/include/php_writeexcel/class.writeexcel_workbook.inc.php
index c175c43dc17896022fd5ac94e501a4fe7012b678..cdaac1557224f63c56876113e14c5f154b4073c8 100644 (file)
$this->_palette = array();
# Add the default format for hyperlinks
- $this->_url_format =& $this->addformat(array('color' => 'blue', 'underline' => 1));
+ $this->_url_format = $this->addformat(array('color' => 'blue', 'underline' => 1));
# Check for a filename
if ($this->_filename == '') {
#
# Returns: a list of the worksheet objects in a workbook
#
-function &sheets() {
+function sheets() {
return $this->_worksheets;
}
#
# Returns: reference to a worksheet object
#
-function &addworksheet($name="") {
+function addworksheet($name="") {
# Check that sheetname is <= 31 chars (Excel limit).
if (strlen($name) > 31) {
$this->_url_format, $this->_parser,
$this->_tempdir);
- $this->_worksheets[$index] = &$worksheet; # Store ref for iterator
+ $this->_worksheets[$index] = $worksheet; # Store ref for iterator
$this->_sheetnames[$index] = $name; # Store EXTERNSHEET names
$this->_parser->set_ext_sheet($name, $index); # Store names in Formula.pm
return $worksheet;
# Add a new format to the Excel workbook. This adds an XF record and
# a FONT record. Also, pass any properties to the Format::new().
#
-function &addformat($para=false) {
+function addformat($para=false) {
if($para===false) {
$format = new writeexcel_format($this->_xf_index);
} else {
$this->_xf_index += 1;
# Store format reference
- $this->_formats[]=&$format;
+ $this->_formats[]=$format;
return $format;
}
}
*/
- $aref = &$this->_palette;
+ $aref = $this->_palette;
# Check that the colour index is the right range
if ($index < 8 or $index > 64) {
# Calculate the number of selected worksheet tabs and call the finalization
# methods for each worksheet
for ($c=0;$c<sizeof($this->_worksheets);$c++) {
- $sheet=&$this->_worksheets[$c];
+ $sheet=$this->_worksheets[$c];
if ($sheet->_selected) {
$this->_selected++;
- }
+
+ }
$sheet->_close($this->_sheetnames);
}
# Add BOUNDSHEET records
for ($c=0;$c<sizeof($this->_worksheets);$c++) {
- $sheet=&$this->_worksheets[$c];
+ $sheet=$this->_worksheets[$c];
$this->_store_boundsheet($sheet->_name, $sheet->_offset);
}
$OLE->write($this->_data);
for ($c=0;$c<sizeof($this->_worksheets);$c++) {
- $sheet=&$this->_worksheets[$c];
+ $sheet=$this->_worksheets[$c];
while ($tmp = $sheet->get_data()) {
$OLE->write($tmp);
}
$offset += $EOF;
for ($c=0;$c<sizeof($this->_worksheets);$c++) {
- $sheet=&$this->_worksheets[$c];
+ $sheet=$this->_worksheets[$c];
$sheet->_offset = $offset;
$offset += $sheet->_datasize;
}
$fonts[$key] = 0; # Index of the default font
for ($c=0;$c<sizeof($this->_formats);$c++) {
- $format=&$this->_formats[$c];
+ $format=$this->_formats[$c];
$key = $format->get_font_key();
#
for ($c=0;$c<sizeof($this->_formats);$c++) {
- $format=&$this->_formats[$c];
+ $format=$this->_formats[$c];
$num_format = $format->_num_format;
# Stores the PALETTE biff record.
#
function _store_palette() {
- $aref = &$this->_palette;
+ $aref = $this->_palette;
$record = 0x0092; # Record identifier
$length = 2 + 4 * sizeof($aref); # Number of bytes to follow
diff --git a/include/php_writeexcel/class.writeexcel_workbookbig.inc.php b/include/php_writeexcel/class.writeexcel_workbookbig.inc.php
index bc0ba40ba9433f8db7dba74fdf67fb3b53fe811b..8f0c752fd363d86e0687456a874fa057fc8efa10 100644 (file)
$file->append($this->_data);
for ($c=0;$c<sizeof($this->_worksheets);$c++) {
- $worksheet=&$this->_worksheets[$c];
+ $worksheet=$this->_worksheets[$c];
while ($data=$worksheet->get_data()) {
$file->append($data);
}
diff --git a/include/php_writeexcel/class.writeexcel_worksheet.inc.php b/include/php_writeexcel/class.writeexcel_worksheet.inc.php
index c2109723521c97a533831cc871da46a47e6b1782..6db3f5dbeca26412ba80dbadb5395363bbcd4b78 100644 (file)
/*
* Constructor. Creates a new Worksheet object from a BIFFwriter object
*/
- function writeexcel_worksheet($name, $index, &$activesheet, &$firstsheet,
- &$url_format, &$parser, $tempdir) {
+ function writeexcel_worksheet($name, $index, $activesheet, $firstsheet,
+ $url_format, $parser, $tempdir) {
$this->writeexcel_biffwriter();
$this->_name = $name;
$this->_index = $index;
- $this->_activesheet = &$activesheet;
- $this->_firstsheet = &$firstsheet;
- $this->_url_format = &$url_format;
- $this->_parser = &$parser;
+ $this->_activesheet = $activesheet;
+ $this->_firstsheet = $firstsheet;
+ $this->_url_format = $url_format;
+ $this->_parser = $parser;
$this->_tempdir = $tempdir;
$this->_ext_sheets = array();
$count=sizeof($chars);
for ($c=0;$c<sizeof($chars);$c++) {
- $char=&$chars[$c];
+ $char=$chars[$c];
$char = ord($char) << ++$i;
$low_15 = $char & 0x7fff;
$high_15 = $char & 0x7fff << 15;
$formula = preg_replace('/^=/', "", $formula);
# Parse the formula using the parser in Formula.pm
- $parser =& $this->_parser;
+ $parser = $this->_parser;
$formula = $parser->parse_formula($formula);
$formlen = strlen($formula); # Length of the binary string
diff --git a/plugins/addons/ldapmanager/class_exportxls.inc b/plugins/addons/ldapmanager/class_exportxls.inc
index 78e77cbb7d3b352314a145a4dbfc8fba62bc7b04..ae27875db37ad070f01d5397be9291c71403eec9 100644 (file)
$smarty->assign("deplist", $bases);
$smarty->assign("choicelist",array( get_people_ou() =>"users" ,
"ou=groups," =>"groups" ,
- "ou=computers,ou=systems," =>"computers",
+ "ou=systems," =>"computers",
"ou=servers,ou=systems," =>"servers",
"dc=addressbook," =>"addressbook"));