/** * Register the Smarty plugins for the TNTForm library. * * This pre-registers the Smarty template plugins defined by the Form library * so the template doesn't have to search for the implementation. * * @access public * @param string[] $params parameters passed to import directive * @param object $caller reference to calling Smarty class * @return true true if successful */ function smarty_import_tntform($params, &$caller) { // Type Plugin Name Plugin Callback Cacheble $caller->RegisterPlugin('block', 'TNTForm', array('TNTForm', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTFormCell', array('TNTFormCell', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTFormEditBox', array('TNTFormEditBox', '_TemplatePluginBlock'), false); // $caller->RegisterPlugin('block', 'TNTFormToggleBox', array('TNTFormToggleBox', '_TemplatePluginBlock'), false); // $caller->RegisterPlugin('block', 'TNTFormCheckBox', array('TNTFormCheckBox', '_TemplatePluginBlock'), false); // $caller->RegisterPlugin('block', 'TNTFormRadioBox', array('TNTFormRadioBox', '_TemplatePluginBlock'), false); // $caller->RegisterPlugin('block', 'TNTFormTickBox', array('TNTFormTickBox', '_TemplatePluginBlock'), false); // $caller->RegisterPlugin('block', 'TNTFormData', array('TNTFormData', '_TemplatePluginBlock'), false); // $caller->RegisterPlugin('block', 'TNTFormTextBox', array('TNTFormTextBox', '_TemplatePluginBlock'), false); // $caller->RegisterPlugin('block', 'TNTFormUploadBox', array('TNTFormUploadBox', '_TemplatePluginBlock'), false); // $caller->RegisterPlugin('block', 'TNTFormNumberBox', array('TNTFormNumberBox', '_TemplatePluginBlock'), false); // $caller->RegisterPlugin('block', 'TNTFormPasswordBox',array('TNTFormPasswordBox', '_TemplatePluginBlock'), false); // $caller->RegisterPlugin('block', 'TNTFormListBox', array('TNTFormListBox', '_TemplatePluginBlock'), false); // $caller->RegisterPlugin('block', 'TNTFormToggleList',array('TNTFormToggleList', '_TemplatePluginBlock'), false); // $caller->RegisterPlugin('block', 'TNTFormButton', array('TNTFormButton', '_TemplatePluginBlock'), false); // $caller->RegisterPlugin('block', 'TNTFormImageButton',array('TNTFormImageButton', '_TemplatePluginBlock'), false); // $caller->RegisterPlugin('block', 'TNTFormMenuBar', array('TNTFormMenuBar', '_TemplatePluginBlock'), false); // $caller->RegisterPlugin('block', 'TNTFormMenu', array('TNTFormMenu', '_TemplatePluginBlock'), false); // $caller->RegisterPlugin('block', 'TNTFormTree', array('TNTFormTree', '_TemplatePluginBlock'), false); // $caller->RegisterPlugin('block', 'TNTFormOutBar', array('TNTFormOutBar', '_TemplatePluginBlock'), false); // $caller->RegisterPlugin('block', 'TNTFormToolBar', array('TNTFormToolBar', '_TemplatePluginBlock'), false); // $caller->RegisterPlugin('block', 'TNTFormListView', array('TNTFormListView', '_TemplatePluginBlock'), false); return true; }
/** * Register the Smarty plugins for the TNTWui library. * * This pre-registers the Smarty template plugins defined by the Wui library * so the template doesn't have to search for the implementation. * * @access public * @param string[] $params parameters passed to import directive * @param object $caller reference to calling Smarty class * @return true true if successful */ function smarty_import_tntwui($params, &$caller) { // Type Plugin Name Plugin Callback Cacheble $caller->RegisterPlugin('block', 'TNTWuiWidget', array('TNTWuiWidget', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiWindow', array('TNTWuiWindow', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiForm', array('TNTWuiForm', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiToggleBox', array('TNTWuiToggleBox', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiCheckBox', array('TNTWuiCheckBox', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiRadioBox', array('TNTWuiRadioBox', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiTickBox', array('TNTWuiTickBox', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiData', array('TNTWuiData', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiInput', array('TNTWuiInput', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiEditBox', array('TNTWuiEditBox', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiTextBox', array('TNTWuiTextBox', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiUploadBox', array('TNTWuiUploadBox', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiNumberBox', array('TNTWuiNumberBox', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiPasswordBox', array('TNTWuiPasswordBox', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiListBox', array('TNTWuiListBox', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiToggleList', array('TNTWuiToggleList', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiButton', array('TNTWuiButton', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiImageButton', array('TNTWuiImageButton', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiMenuBar', array('TNTWuiMenuBar', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiMenu', array('TNTWuiMenu', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiTree', array('TNTWuiTree', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiOutBar', array('TNTWuiOutBar', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiToolBar', array('TNTWuiToolBar', '_TemplatePluginBlock'), false); $caller->RegisterPlugin('block', 'TNTWuiListView', array('TNTWuiListView', '_TemplatePluginBlock'), false); return true; }