Nifty functions that can be used almost everywhere, generic purposes. Which class would they go in?
For instance, I’m looking to get rid of all uses of
code like:
<?php echo ($post->status == Post::STATUS_DRAFT) ?
'checked="checked"' : ''; ?>
(from publish.php, it’s job is to check if the option is selected, and if so, add a value=checked to it)
And replace that with something like this:
<?php echo optionIsChecked($post->status == Post::STATUS_DRAFT) ?>
Which class would functions of the likes of “optionIsChecked” go in?
Computer Guru
--
--Robert Deaton
http://lushlab.com