MEM wrote:
>> By the way, there are many reasons for creating objects inside of other
>> objects. This should not be considered an exception. I don't know where
>> this code belongs to, so I can't clear out if it is good or bad OOP
>> style.
>
> I do not intend to public judge the author, but the
> By the way, there are many reasons for creating objects inside of other
> objects. This should not be considered an exception. I don't know where
> this code belongs to, so I can't clear out if it is good or bad OOP
> style.
I do not intend to public judge the author, but the original article is
erstag, 30. Juli 2009 12:21
An: php-general@lists.php.net
Betreff: [PHP] stdClass - A newbie question
Hello everybody,
In this class sketch:
total_pages = $total_pages;
$pagi_obj->offset = $offset;
$pagi_obj->limit = $limit;
$pagi_obj->page;
return $pagi_obj;
Hello everybody,
In this class sketch:
total_pages = $total_pages;
$pagi_obj->offset = $offset;
$pagi_obj->limit = $limit;
$pagi_obj->page;
return $pagi_obj;
}
}
Why do the author used a stdClass ?
What are the advantages of using
4 matches
Mail list logo