Date: 02/07/00
- Next message: Stanislav Malyshev: "Re: [PHPLIB-DEV] Some questions"
- Previous message: Stanislav Malyshev: "[PHPLIB-DEV] Some questions"
- In reply to: Stanislav Malyshev: "[PHPLIB-DEV] Some questions"
- Next in thread: Stanislav Malyshev: "Re: [PHPLIB-DEV] Some questions"
- Reply: Stanislav Malyshev: "Re: [PHPLIB-DEV] Some questions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Sorry, I'm not involved to the of_*-classes.
Are your questions
1. just questions or
2. are they suggestions for the developers?
If 1) : Go to phplib <email protected>
If 2) : Your questions make sense. Ask the programmers. Try to make a new
version of of_* with your downward-compatible suggestions.
To your question 3:
}3. Why PHPLIB uses single quotes to delimit HTML attributes? I thought
}double quotes are standard thing.
Single quotes are scanned faster (no variable expansion), inside single
quotes only single quotes must be escaped (no need for \" and other
backslashed data). Single quotes are ideal for HTML-Stuff.
To Question 4:
PHPLIB is currently not PHP4-compatible!
On Thu, 3 Feb 2000, Stanislav Malyshev wrote:
}I have some things that I don't understand in PHPLIB functioning. Could
}you please explain?
}
}1. Why of_* classes when validating forms via Javascript use numbers and
}not element names? Numbers will work only if form fields are in the HTML
}in the same order as get_element for them was called - which isn't always
}the case (and there's no way for PHPLIB to know it it is) and is never
}mentioned in the docs. Why not use element names, which are guaranteed to
}be there and be known - since PHPLIB itself makes them, and allow to move
}HTML code around and insert custom elements at will?
}
}2. Why of_textarea has no validation hooks? In what respect is it worse
}than of_text?
}
}3. Why PHPLIB uses single quotes to delimit HTML attributes? I thought
}double quotes are standard thing.
}
}4. Why templates use slow array-version of preg_replace. which requires
}one path on the template for *every* key? It is certainly possible to do
}it in one pass, which should be definitely faster. With PHP 4, it's
}possible even to have PHP to compile template once and then only execute
}it, which should be yet more fast. Is somebody interested in
}incorporating this in PHPLIB?
--SSilk - Alexander Aulbach - Herbipolis/Frankonia Minoris - (0931)22032
- PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in the body, not the subject, of your message.
- Next message: Stanislav Malyshev: "Re: [PHPLIB-DEV] Some questions"
- Previous message: Stanislav Malyshev: "[PHPLIB-DEV] Some questions"
- In reply to: Stanislav Malyshev: "[PHPLIB-DEV] Some questions"
- Next in thread: Stanislav Malyshev: "Re: [PHPLIB-DEV] Some questions"
- Reply: Stanislav Malyshev: "Re: [PHPLIB-DEV] Some questions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

