66 $this->CachedMultyFS =
get_package(
'cached_multy_fs' ,
'last' , __FILE__ );
96 private function get_templates( &$Options )
100 $DirPath = dirname( __FILE__ ).
"/res/templates/";
102 $FileName = $Options->get_setting(
'header' ,
'header' );
103 $Header = $this->CachedMultyFS->file_get_contents(
"$DirPath$FileName.tpl" );
105 $FileName = $Options->get_setting(
'item' ,
'item' );
106 $Item = $this->CachedMultyFS->file_get_contents(
"$DirPath$FileName.tpl" );
108 $FileName = $Options->get_setting(
'footer' ,
'footer' );
109 $Footer = $this->CachedMultyFS->file_get_contents(
"$DirPath$FileName.tpl" );
111 return( array( $Header , $Item , $Footer ) );
113 catch( Exception $e )
143 $Name = $Options->get_setting(
'package_name' );
144 $Version = $Options->get_setting(
'package_version' ,
'last' );
145 $Package =
get_package( $Name , $Version , __FILE__ );
146 $FunctionName = $Options->get_setting(
'select_func_name' ,
'select' );
148 $Records = call_user_func( array( $Object , $FunctionName ) , 0 , 1000000 ,
false ,
false );
150 list( $Header , $Item , $Footer ) = $this->get_templates( $Options );
152 foreach( $Records as $i => $Record )
154 $this->Output .= $this->String->print_record( $Item , $Record );
157 $this->Output = $Header.$this->Output.$Footer;
159 catch( Exception $e )
189 return( $this->Output );
191 catch( Exception $e )
223 $ContextSet =
get_package(
'gui::context_set' ,
'last' , __FILE__ );
225 $ContextSet->add_context( dirname( __FILE__ ).
'/conf/cfcx_object_list' );
227 $ContextSet->execute( $Options , $this , __FILE__ );
229 return( $this->Output );
231 catch( Exception $e )