<?php
$xf = $this->_xf_index; // Backup XF index
$this = $other; // Copy properties
$this->_xf_index = $xf; // Restore XF index
}
?>
(http://search.cpan.org/src/JMCNAMARA/Spreadsheet-WriteExcel-0.37/WriteExcel/doc/WriteExcel.html):
Cytat
copy($format)
This method is used to copy all of the properties from one Format object to another:
my $lorry1 = $workbook->addformat();
$lorry1->set_bold();
$lorry1->set_italic();
$lorry1->set_color('red'); # lorry1 is bold, italic and red
my $lorry2 = $workbook->addformat();
$lorry2->copy($lorry1);
$lorry2->set_color('yellow'); # lorry2 is bold, italic and yellow
It is only useful if you are using the method interface to Format properties. It generally isn't required if you are setting Format properties directly using hashes.
Note: this is not a copy constructor, both objects must exist prior to copying.
czyli ta funkcja probuje przypisac aktualnie uzywanemu obiektowi obiekt podany jako argument funkcji copy, jak widac jest to nieprawidlowe w php.
Cytat
This method is used to copy all of the properties from one Format object to another:
wiec moze obejdziesz sie bez tej funkcji (usun ja z kodu), lub przepisz ja tak zeby recznie skopiwac wszystkie "properties" (jak to jest po polsku?) z obiektu podanego w argumencie funkcji:
<?php
$this->_font_index = $other->_font_index
// ... itd az do
//_right_color;
// patrz poczatek tej klasy
// niekopiuj tylko $this->_xf_index;
?>
Nie sprawdzalem czy dziala!
---------------------------------------------------------
(http://www.ez.no/community/forum/install_configuration/installing_ez_publish_3_4_fatal_error_cannot_re_assign_this_in_ezdebug_php)
Cytat
Re: Installing eZ publish 3.4: "Fatal error: Cannot re-assign $this in ezdebug.php"
Posted on: Monday 21 June 2004 5:07:02 pm
We do not currently support PHP5. PHP5 will require some of the code to be rewritten, something we'll do when PHP5 is more widespread, and proven stable.
To jest chyba wina PHP5, 4ce bylo to chyba mozwliwe.