Patch #1326

A few changes to magic methods and render()

Added by Alex Mayhew over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:02/23/2009
Priority:LowDue date:
Assignee:Sam de Freyssinet% Done:

100%

Category:Library::GravatarSpent time:0.25 hour
Target version:0.1.1
Resolution: Points:

Description

Title says it all really. After having another look at the code it looks like you can already do what I mentioned here like so:

foreach ($users as $user)
    echo $gravatar->email($user->email);

But I added the parameter to render() as it can't really do any harm.

Also changed form::attributes to html::attributes as form:: checks and sorts form field attributes, whereas html:: just compiles them.

Modified the getter / setter so that they can get / set config properties, attributes and the email address.

gravatar.patch Magnifier (1.87 KB) dave -, 02/23/2009 10:22 PM

History

#1 Updated by Sam de Freyssinet over 5 years ago

  • Category set to Libraries
  • Assignee set to Geert De Deckere

Implemented in r5 , thanks Alex

#2 Updated by Sam de Freyssinet over 5 years ago

  • % Done changed from 0 to 100

Implemented in r5

#3 Updated by Sam de Freyssinet over 5 years ago

  • Status changed from New to Closed

Applied in changeset r5.

#4 Updated by Sam de Freyssinet over 5 years ago

  • Target version set to 44

Also available in: Atom PDF