pkit_component_params_hashref — Get access to the component parameters.
<PKIT_COMPONENT NAME="xxx" headline="title" datasrc="select * from a_table"> <PKIT_COMPONENT NAME="xxx" headline="another_title" datasrc="select * from another_table"> <PKIT_COMPONENT NAME="xxx" headline="title" datasrc="select * from a_table"> sub xxx { my $model = shift; my $fields = $model->pkit_component_params_hashref; my $select_statement = $fields->{DATASRC}; ... }
This method return a hashref that contain the component parameters (or undef if the calling routine is not a component). All keys are uppercase and the NAME of the component is not present in the hash. If the same component is used twice or more, the component code is called only once.