Regarding question #2…

Yes, makeEventBean is a core MG function (located in event.cfc). It creates a bean* object of the type specified.

 

In this context, I believe that it will make a UserRecord bean which allows you to access the data in the user table in the Reactor Blog database. An optional second string argument exists to specify which fields to populate if you are only looking for a subset of the fields available from the User table.

 

*A bean is an object that has getters and setters for each value.

 

Dan Sorensen

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Scott
Sent: Monday, March 13, 2006 2:52 PM
To: [email protected]
Subject: [Reactor For CF] A few MG / Reactor Questions - Newbie Alert!

 

Doug (or whoever),

 

I have a few questions. I am reading through the Reactor Blog login code and have a few questions.

 

1. From UserController.cfc you call DoValidateLogin which creates a UserRecord variable as follows:

 

<cfset var UserRecord = arguments.event.getValue("UserRecord") />

 

My first question is how is there a UserRecord object already in the event? I have not found it instanciated anyplace yet.

 

 

2. Then you do the following: <cfset arguments.event.makeEventBean(UserRecord)

 

Is makeEventBean() a core MG function? If so what exactly does it do?

 

 

3.  In UserRecordmssql.cfc the login function create an instance of UserGateway as follows:

 

<cfset var UserGateway = _getReactorFactory().createGateway(_getName()) />

 

The question is what significance does the underscore "_" have in _getReactorFactor() and _getName()?

 

 

4. And this maybe the most newbie question of the bunch.... What is the purpose of creating the scope facade?

 

 

Thank you for the help.

 

 

Josh

-- Reactor for ColdFusion Mailing List -- [email protected] -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/

Reply via email to