Adobe� Corporate Template 2005

Document Sample
Adobe� Corporate Template 2005 Powered By Docstoc
					









    

    

    



























<cfcomponent>
  <cffunction name="getServices" returntype="query">
         <cfargument name="sort" type="string" required="yes">
         <cfset var qGetAll="">
         <cfquery name="qGetAll" datasource="#application.dsn#">
                SELECT * FROM Services
                ORDER BY #arguments.sort#
         </cfquery>
         <cfreturn qGetAll>
  </cffunction>


  <cffunction name="invoke_function">
         <cfset getServices()>
  </cffunction>
</cfcomponent>

<cfinvoke
component="marketing.services"
method="getServices"
returnvariable="qServices">
 <cfinvokeargument name="sort" value="serv_id"/>
</cfinvoke>








    <cfobject component="marketing.services"
               name="cfcServices">


    <cfset cfcServices =
    CreateObject("component","marketing.services")>






    <cfobject component="marketing.services"
               name="cfcServices">

    <cfinvoke component="#cfcServices#"
               method="getServices"
               returnvariable="qServices"
               sort="serv_id"/>




    <cfobject component="marketing.services"
               name="cfcServices">

    <cfset qServices =
             cfcServices.getServices("serv_id")>




    

    



        <cfobject component="marketing.services"
                   name="application.cfcServices">

        <cfset qServices =
        application.cfcServices.getServices("serv_id")>





























    <cfcomponent extends = "components.myParent">







<cfcomponent>               <cfcomponent
<cffunction                 extends=”services”>
name=”getServices”>         <cffunction
     [Function CFML code]   name=”getServices”>
                            <cfreturn
</cffunction>               super.getServices()>
</cfcomponent>              </cffunction>
                            </cfcomponent>





    

    







    <cffunction name="getServices" returntype="query"
    access="public">







    <cffunction name="getServices" returntype="query"
    access="public" roles="admin,manager">
   




   





















				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:1
posted:9/16/2012
language:Latin
pages:26