Nothing too fancy, in the book decorator -

(Really light code, cause I'm tying in a email box)

<cffunction name="hasTheme" return="boolean">
  <cfargument name="theme" />
  <cfset var themes = getThemeArray() />
  <cfset var theme = 0 />
  <cfloop array="#themes#" index="theme">
    <cfif theme.getParentTheme().transferEquals(arguments.theme)>
      <cfreturn true />
    </cfif>
  </cfloop>
  <cfreturn false/>
</cffunction>

You should be able to work out the 'getTheme' from there.


On Sun, Nov 2, 2008 at 7:31 PM, Stephen Moretti
<[EMAIL PROTECTED]> wrote:

>
> Definitely!  Unfortunately, because of restrictions in the layer between by
> transfer objects and transfer I didn't end up using a decorator for this,
> but it would definitely make life a lot easier.

Not sure what you mean from this - could you elaborate?

Mark

-- 
E: [EMAIL PROTECTED]
W: www.compoundtheory.com

--~--~---------~--~----~------------~-------~--~----~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
"transfer-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to