2010-12-02 23:34:41 +00:00
|
|
|
<?php
|
|
|
|
|
<!-- START BLOCK : plugin -->
|
2011-12-06 18:54:23 -04:00
|
|
|
require_once (PATH_PLUGINS . '{pluginName}' . PATH_SEP . 'class.{pluginName}.php');
|
|
|
|
|
$pluginObj = new {pluginName}Class();
|
2010-12-02 23:34:41 +00:00
|
|
|
<!-- END BLOCK : plugin -->
|
|
|
|
|
|
2011-12-06 18:54:23 -04:00
|
|
|
require_once ("classes/model/{className}.php");
|
2010-12-02 23:34:41 +00:00
|
|
|
|
|
|
|
|
<!-- START BLOCK : dummy -->
|
|
|
|
|
//if exists the row in the database propel will update it, otherwise will insert.
|
2011-12-06 18:54:23 -04:00
|
|
|
//$tr = {phpClassName}Peer::retrieveByPK( {keylist} );
|
|
|
|
|
//if ((is_object($tr) && get_class($tr) == '{phpClassName}')) {
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
// $fields = array();
|
|
|
|
|
//$fields['ITM_UID'] = $ItmUid;
|
2010-12-02 23:34:41 +00:00
|
|
|
<!-- END BLOCK : dummy -->
|
|
|
|
|
|
|
|
|
|
<!-- START BLOCK : keys -->
|
|
|
|
|
$fields['{name}'] = G::GenerateUniqueID();;
|
|
|
|
|
<!-- END BLOCK : keys -->
|
|
|
|
|
|
|
|
|
|
<!-- START BLOCK : onlyFields -->
|
|
|
|
|
$fields['{name}'] = '';
|
|
|
|
|
<!-- END BLOCK : onlyFields -->
|
|
|
|
|
|
|
|
|
|
$G_MAIN_MENU = '{projectName}';
|
|
|
|
|
$G_SUB_MENU = '{phpClassName}';
|
|
|
|
|
$G_ID_MENU_SELECTED = '{menuId}';
|
|
|
|
|
$G_ID_SUB_MENU_SELECTED = '{menuId}';
|
|
|
|
|
|
|
|
|
|
$G_PUBLISH = new Publisher;
|
2011-12-06 18:54:23 -04:00
|
|
|
$G_PUBLISH->AddContent('xmlform', 'xmlform', '{phpFolderName}/{phpClassName}Edit', '', $fields, '{phpClassName}Save');
|
|
|
|
|
G::RenderPage('publish');
|
2010-12-02 23:34:41 +00:00
|
|
|
?>
|