-Original Message-
From: Kris Deugau [mailto:kdeu...@vianet.ca]
Sent: Thursday, December 16, 2010 11:57 AM
To: php-general@lists.php.net
Subject: [PHP] String passed to object constructor turning into an
instance of
that object?
I'm in the process of migrating customer websites
Tommy Pham wrote:
class SelectBoxOption extends Tag {
function SelectBoxOption($name, $value, $selected=false) {
parent::Tag(option, $name);
$this-addAttribute(value, $value);
if($selected) {
$this-addAttribute(selected, '', false);
}
if ($name == ) {
Nathan Nobbe wrote:
probly something screwy going on w/ the old style of naming constructors. 2
things,
1. can you post the Tag constructor as it reads now?
function Tag($tag='', $tagContent='') {
$this-tagContent = $tagContent;
$this-tag = $tag;
$this-showEndTag = false;
On Thu, Dec 16, 2010 at 4:04 PM, Kris Deugau kdeu...@vianet.ca wrote:
Nathan Nobbe wrote:
probly something screwy going on w/ the old style of naming constructors.
2
things,
1. can you post the Tag constructor as it reads now?
function Tag($tag='', $tagContent='') {
$this-tagContent
I've never used the old-style constructors, but perhaps the semantics of
parent:: changed and you need to instead use $this- as in
$this-Tag(option, $name);
That's a total guess. I don't have 5.2 handy to try it out, but both work in
5.3 using a simple example. Can you post the constructor
5 matches
Mail list logo