Patch #1326

A few changes to magic methods and render()

Added by Alex Mayhew about 4 years ago. Updated about 4 years ago.

Status:Closed Start date:02/23/2009
Priority:Low Due date:
Assignee:Sam de Freyssinet % Done:

100%

Category:Library::Gravatar Spent 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 (1.9 kB) dave -, 02/23/2009 10:22 pm

History

Updated by Sam de Freyssinet about 4 years ago

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

Implemented in r5 , thanks Alex

Updated by Sam de Freyssinet about 4 years ago

  • % Done changed from 0 to 100

Implemented in r5

Updated by Sam de Freyssinet about 4 years ago

  • Status changed from New to Closed

Applied in changeset r5.

Updated by Sam de Freyssinet about 4 years ago

  • Target version set to 44

Also available in: Atom PDF