Re: Package(s) proposal(s): HTML_Image and HTML_Link.

From: Date: Sun, 03 Aug 2003 19:11:27 +0000
Subject: Re: Package(s) proposal(s): HTML_Image and HTML_Link.
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-19204@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stephan Schmidt, el domingo 3 de agosto a las 21:00 me escribiste: > Hi, > > > And I don't understand why it's overkill to have 2 small classes... > > HTML_Anchor will basically just out put <a name="foo"></a> > I don't think that a seperate class is needed for this. What about a function then? does everything has to be a class in PEAR (this is not a "flame question", it's a real question)? What about: echo HTML_Anchor('foo'); Maybe even HTML_Link and HTML_Image could be done as a functions (it's not very common to change values of this objects) $page->addBodyContent(HTML_Link('mypage.php')); :) I find very confusing that HTML_Link can be used to make a "bookmark", "anchor", "fragment" or whatever is called (I'm sorry about my limited english). - -- LUCA - Leandro Lucarella - Usando Debian GNU/Linux Sid - GNU Generation - ------------------------------------------------------------------------ E-Mail / JID: luca@lugmen.org.ar GPG Fingerprint: D9E1 4545 0F4B 7928 E82C 375D 4B02 0FE0 B08B 4FB2 GPG Key: gpg --keyserver pks.lugli.org.ar --recv-keys B08B4FB2 - ------------------------------------------------------------------------ If Patrick Henry thought that taxation without representation was bad, he should see how bad it is with representation. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD4DBQE/LV5fSwIP4LCLT7IRArJAAKCMaKH9wlSo8MeH+tClWISvpSSicQCY7j+i L1fzDQOzxZMov69bvSHMiw== =9B5J -----END PGP SIGNATURE-----

« previous php.pear.dev (#19204) next »