Yii Framework Forum: class naming (why E*) - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

class naming (why E*) Rate Topic: -----

#1 User is offline   vamp 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 181
  • Joined: 30-January 09

Posted 23 February 2009 - 10:23 AM

E* means that described class was extended from Exception or any wrapper of Exception's class.
Qiang, why do you use E*-class naming?
0

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,879
  • Joined: 04-October 08
  • Location:DC, USA

Posted 23 February 2009 - 10:28 AM

? which class has this naming?
0

#3 User is offline   vamp 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 181
  • Joined: 30-January 09

Posted 23 February 2009 - 10:53 AM

see JUI, each class has same naming (EAccordion, EDatePicker, EDialog, EJQueryUiWidget, ...), you need some standarts :)
0

#4 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,879
  • Joined: 04-October 08
  • Location:DC, USA

Posted 23 February 2009 - 11:06 AM

Those are user-contributed extension classes. As long as they have some unique class prefix, it should be fine. The prefix 'C' is only used by core framework classes.
0

#5 User is offline   ekerazha 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 525
  • Joined: 10-October 08
  • Location:European Union

Posted 23 February 2009 - 01:08 PM

I was the first to propose the E prefix for extensions because it was "E" as in "Extension", however it is arbitrary.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users