31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
<cfcomponent extends="generic_page_info" displayname="information container for form page" output="true">
|
|
|
|
<cfproperty name="formName" type="string"/>
|
|
<cfproperty name="formAction" type="string"/>
|
|
<cfproperty name="formMethod" type="string"/>
|
|
<cfproperty name="formEncType" type="string"/>
|
|
|
|
<cffunction name="init">
|
|
<cfargument name="entity" type="string" required="true"/>
|
|
<cfargument name="key" type="string" default="#arguments.entity#_id"/><!--- *** некрасиво как выполнен проброс --->
|
|
<cfargument name="track" type="struct" required="true"/>
|
|
<cfargument name="formName" type="string" default=""/>
|
|
<cfargument name="formAction" type="string" default=""/>
|
|
<cfargument name="formMethod" type="string" default=""/>
|
|
<cfargument name="formEncType" type="string" default=""/>
|
|
|
|
<cfset super.init(arguments.entity, arguments.key, arguments.track)/>
|
|
|
|
<cfset this.formName=arguments.formName/>
|
|
<cfset this.formAction=arguments.formAction/>
|
|
<cfset this.formMethod=arguments.formMethod/>
|
|
<cfset this.formEncType=arguments.formEncType/>
|
|
|
|
<cfreturn this>
|
|
</cffunction>
|
|
|
|
<cffunction name="getType" returntype="string">
|
|
<cfreturn "form"/>
|
|
</cffunction>
|
|
|
|
</cfcomponent> |