Dotclear

Ticket #1050 (closed enhancement: fixed)

Opened 15 years ago

Last modified 13 years ago

getAge should be static

Reported by: JcDenis Owned by: Tomtom33
Priority: normal Milestone:
Component: module:public Version:
Severity: normal Keywords: public,template
Cc:

Description

In class dcTemplate, function getAge() should be static, so it could be called everywhere with dcTemplate::getAge($attr);

Change History

comment:1 Changed 14 years ago by Tomtom33

  • Owner changed from team to Tomtom33
  • Milestone changed from 2.3 to 2.4

comment:2 Changed 14 years ago by bruno

  • Priority changed from low to normal
  • Severity changed from trivial to normal
  • Milestone 2.4 deleted

comment:3 Changed 13 years ago by franck

Quel est l'intérêt ?

comment:4 Changed 13 years ago by JcDenis

Je me servais souvent de cette fonction dans des plugins en partie public et du coup je faisais un copié/collé à chaque fois, alors que si elle était static j'aurais pu l'appeler de n'importe ou.

comment:5 Changed 13 years ago by franck

Bon ça va pas coûter cher, je la colle en static.

comment:6 Changed 13 years ago by franck <carnet.franck.paul@…>

  • Status changed from new to closed
  • Resolution set to fixed

(In [1bb2aef1cb93]) Put dcTemplate::getAge() function to static, fixes #1050

Note: See TracTickets for help on using tickets.

Sites map