Yii Framework Forum: Useful things in documentation - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Useful things in documentation Rate Topic: -----

#1 User is offline   saegeek 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 245
  • Joined: 09-December 09
  • Location:Montpellier - France

Posted 03 May 2012 - 05:13 AM

Hi,

There is a table @ each class page in the class reference that quickly provides some informations about the class like:

Quote

Package >> system.web
Inheritance >> class CArrayDataProvider » CDataProvider » CComponent
Implements >> DataProvider
Since >> 1.1.4
Version >> $Id: CArrayDataProvider.php 3353 2011-07-12 21:10:36Z alexander.makarow $
Source Code >> framework/web/CArrayDataProvider.php

But i think there is a need of some other useful informations.
Example in CArrayDataProvider it could be useful to quickly view:

Quote

Parameters >> ( mixed array $rawData, [,array $config] )
Return Values >> $dataProvider->getData() will return a list of arrays.

And [for] their saying, "Indeed, we have killed the Messiah, Jesus, the son of Mary, the messenger of God ." And they did not kill him, nor did they crucify him; but [another] was made to resemble him to them. And indeed, those who differ over it are in doubt about it. They have no knowledge of it except the following of assumption. And they did not kill him, for certain.Rather, God raised him to Himself.
0

#2 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,358
  • Joined: 12-October 09
  • Location:Croatia

Posted 03 May 2012 - 05:15 AM

The parameters you can see on the constructor method...

As for return values it's too complicated as there can be many methods that returns values... this is a class not a method with one return value...
Find more about me.... btw. Do you know your WAN IP?
0

#3 User is offline   saegeek 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 245
  • Joined: 09-December 09
  • Location:Montpellier - France

Posted 03 May 2012 - 05:51 AM

at least __construct(.... [....] ) could be added
And [for] their saying, "Indeed, we have killed the Messiah, Jesus, the son of Mary, the messenger of God ." And they did not kill him, nor did they crucify him; but [another] was made to resemble him to them. And indeed, those who differ over it are in doubt about it. They have no knowledge of it except the following of assumption. And they did not kill him, for certain.Rather, God raised him to Himself.
0

#4 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,358
  • Joined: 12-October 09
  • Location:Croatia

Posted 03 May 2012 - 05:56 AM

some classes do not have their constructor but use the parent one... and the constructor is on the page, I don't see the point in duplicating it as then even the parameter description would be needed...
Find more about me.... btw. Do you know your WAN IP?
0

#5 User is offline   saegeek 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 245
  • Joined: 09-December 09
  • Location:Montpellier - France

Posted 08 May 2012 - 03:15 AM

Each time i check the documentation to add a widget or something i would like to know what are the minimal parameters for this widget to run but sometimes it's missing. Like in:
CTabView

Minimal parameters + a minimal example should be added :)
And [for] their saying, "Indeed, we have killed the Messiah, Jesus, the son of Mary, the messenger of God ." And they did not kill him, nor did they crucify him; but [another] was made to resemble him to them. And indeed, those who differ over it are in doubt about it. They have no knowledge of it except the following of assumption. And they did not kill him, for certain.Rather, God raised him to Himself.
1

#6 User is offline   Junior - df9 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 416
  • Joined: 24-May 09
  • Location:Brazil

Posted 11 May 2012 - 05:59 AM

Hi, take a look at yiiplayground

http://yiiplayground.cubedwater.com

Regards
______________________________________
Junior
df9.com.br
Linux Registered User #364954
GNU/Linux: together we're ready!
0

#7 User is offline   saegeek 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 245
  • Joined: 09-December 09
  • Location:Montpellier - France

Posted 11 May 2012 - 06:42 AM

oh i know
And [for] their saying, "Indeed, we have killed the Messiah, Jesus, the son of Mary, the messenger of God ." And they did not kill him, nor did they crucify him; but [another] was made to resemble him to them. And indeed, those who differ over it are in doubt about it. They have no knowledge of it except the following of assumption. And they did not kill him, for certain.Rather, God raised him to Himself.
0

#8 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,739
  • Joined: 17-January 09
  • Location:Russia

Posted 28 May 2012 - 05:45 PM

saegeek
Thanks for pointing out about CTabView. Fixed.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
1

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

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