Google Groups Home
Help | Sign in
Class diagram (MVC)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
dandreta  
View profile
 More options May 15, 3:58 pm
From: dandreta <borja_santu...@hotmail.com>
Date: Thu, 15 May 2008 12:58:25 -0700 (PDT)
Local: Thurs, May 15 2008 3:58 pm
Subject: Class diagram (MVC)
Hi!
I am developing my web application with cake, but I need to deliver
the diagram of classes of the application with the Model-View-
Controller that uses. I have been searching very much but I do not
find anything of help. If someone can say me any link or something i
will great.
Thanks and regards

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcelius  
View profile
 More options May 15, 4:33 pm
From: Marcelius <mraaijmak...@gmail.com>
Date: Thu, 15 May 2008 13:33:13 -0700 (PDT)
Local: Thurs, May 15 2008 4:33 pm
Subject: Re: Class diagram (MVC)
Just curious,
If you've created some app with cake, you could think of a mvc diagram
yourself I think :-)

Just think of how you work with it... You create a controller that
extends from some other class, you can reference a model from that
controller (which also extends from some other class), and you select
a view with that controller... In a view, can you reference the
controller that selected the view, or can you call some method on the
model directly from a view?

On 15 mei, 21:58, dandreta <borja_santu...@hotmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Juan Miguel Paredes  
View profile
 More options May 15, 4:41 pm
From: "Juan Miguel Paredes" <juan.pare...@gmail.com>
Date: Fri, 16 May 2008 16:11:58 +1930
Local: Thurs, May 15 2008 4:41 pm
Subject: Re: Class diagram (MVC)

On Fri, May 16, 2008 at 3:28 PM, dandreta <borja_santu...@hotmail.com> wrote:

> Hi!
> I am developing my web application with cake, but I need to deliver
> the diagram of classes of the application with the Model-View-
> Controller that uses. I have been searching very much but I do not
> find anything of help. If someone can say me any link or something i
> will great.
> Thanks and regards

Hi!  Do you mean a class inheritance diagram, like those in
api.cakephp.org ?  Perhaps you could get away with phpDocumentor...  I
believe it's used for generating the api docs (I could be wrong,
though).

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dandreta  
View profile
 More options May 16, 2:20 pm
From: dandreta <borja_santu...@hotmail.com>
Date: Fri, 16 May 2008 11:20:53 -0700 (PDT)
Local: Fri, May 16 2008 2:20 pm
Subject: Re: Class diagram (MVC)
Thank you for answering.
I think I have not explained well, but what I want is some example of
classes diagram with attributes and methods of some application to see
how the relation is represented in the design between the classes
applying the Model-View-Controller.
For example, in my application I have a table Person (name, age, sex)
in the database. if I want to obtain all the persons and add a new
person I know that the PersonsController calls to PersonModel. Then I
have the PersonsController class and the PersonModel class but i dont
know what methods have each class.
I hope you have understood to me.
Thanks and regards

On 15 mayo, 22:41, "Juan Miguel Paredes" <juan.pare...@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Juan Miguel Paredes  
View profile
 More options May 16, 2:29 pm
From: "Juan Miguel Paredes" <juan.pare...@gmail.com>
Date: Sat, 17 May 2008 13:59:00 +1930
Subject: Re: Class diagram (MVC)

On Sat, May 17, 2008 at 1:50 PM, dandreta <borja_santu...@hotmail.com> wrote:

> Thank you for answering.
> I think I have not explained well, but what I want is some example of
> classes diagram with attributes and methods of some application to see
> how the relation is represented in the design between the classes
> applying the Model-View-Controller.
> For example, in my application I have a table Person (name, age, sex)
> in the database. if I want to obtain all the persons and add a new
> person I know that the PersonsController calls to PersonModel. Then I
> have the PersonsController class and the PersonModel class but i dont
> know what methods have each class.
> I hope you have understood to me.
> Thanks and regards

If phpDocumentor doesn't work for you, you could always try to
'reverse engineer' your code to generate diagrams (UML, I pressume).
I believe Umbrello (and other floss tools) can import PHP classes into
diagrams.  Commercial tools are also available (SparxSystems
Enterprise Architect, the Rational Software Architect and related
tools, etc.).  Anyway, IMHO it's easier to do 'forward engineering'
than reverse.

HTH,

Juan


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Howard Glynn  
View profile
 More options May 16, 4:58 pm
From: "Howard Glynn" <hgl...@gmail.com>
Date: Fri, 16 May 2008 21:58:00 +0100
Subject: Re: Class diagram (MVC)

Perhaps this is what you are looking for

http://cakeexplorer.wordpress.com/2007/12/14/build-image-of-current-c...
http://cakeexplorer.files.wordpress.com/2007/12/model_bakery.png

Not tried it myself, filed on my list of things to do...

On Thu, May 15, 2008 at 8:58 PM, dandreta <borja_santu...@hotmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Juan Miguel Paredes  
View profile
 More options May 16, 5:06 pm
From: "Juan Miguel Paredes" <juan.pare...@gmail.com>
Date: Sat, 17 May 2008 16:36:16 +1930
Local: Fri, May 16 2008 5:06 pm
Subject: Re: Class diagram (MVC)

On Sat, May 17, 2008 at 4:28 PM, Howard Glynn <hgl...@gmail.com> wrote:
> Perhaps this is what you are looking for

> http://cakeexplorer.wordpress.com/2007/12/14/build-image-of-current-c...
> http://cakeexplorer.files.wordpress.com/2007/12/model_bakery.png

> Not tried it myself, filed on my list of things to do...

It will definitely be a good start, but the script would need to be
modified to draw the associations between controllers and models, as
well, if I understood the op's question correctly

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dandreta  
View profile
 More options May 17, 11:16 am
From: dandreta <borja_santu...@hotmail.com>
Date: Sat, 17 May 2008 08:16:09 -0700 (PDT)
Local: Sat, May 17 2008 11:16 am
Subject: Re: Class diagram (MVC)
Then, to seeing if I have understood it well. For my example, I have
two classes:
---------------------------------------------------
PersonsController
{attributes}
-model:Person
{methods}
+insertPerson(name,age,sex):void
+obtListPersons():Person[]
---------------------------------------------------
y
----------------------------------------------------
PersonModel
{attributes}
-id:int
-name:String
-age:int
-sex:String
{methods}
+Person(id,name,age,sex):Person
+obtListPersons():Person[]
----------------------------------------------------
Would it be like that?
It is strange for me that in the class ModeloPersona, has the builder
method of the class (+Person (id, name, age,sex):Person) and also the
method that returns all of the persons (+obtListPersons ():Person [])
because inside of a class only it must be its builder and the methods
that obtain or modify its attributes (for example: +obtname():String
and +setname (name:String):void). Or I am wrong?

I hope that you can solve to me these doubts.

On 16 mayo, 23:06, "Juan Miguel Paredes" <juan.pare...@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Soendergaard  
View profile
 More options May 17, 11:52 am
From: Dan Soendergaard <dan1...@gmail.com>
Date: Sat, 17 May 2008 08:52:20 -0700 (PDT)
Local: Sat, May 17 2008 11:52 am
Subject: Re: Class diagram (MVC)
Maybe this is what you're looking for? http://bakery.cakephp.org/articles/view/visualize-schema-task

On May 17, 5:16 pm, dandreta <borja_santu...@hotmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google