A QCodo powered CMS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.1 KiB

  1. <template OverwriteFlag="true" DocrootFlag="false" DirectorySuffix="" TargetDirectory="<%= __DATAGEN_META_CONTROLS__ %>" TargetFileName="<%= $objTable->ClassName %>MetaControlGen.class.php"/>
  2. <?php
  3. /**
  4. * This is a MetaControl class, providing a QForm or QPanel access to event handlers
  5. * and QControls to perform the Create, Edit, and Delete functionality
  6. * of the <%= $objTable->ClassName %> class. This code-generated class
  7. * contains all the basic elements to help a QPanel or QForm display an HTML form that can
  8. * manipulate a single <%= $objTable->ClassName %> object.
  9. *
  10. * To take advantage of some (or all) of these control objects, you
  11. * must create a new QForm or QPanel which instantiates a <%= $objTable->ClassName %>MetaControl
  12. * class.
  13. *
  14. * Any and all changes to this file will be overwritten with any subsequent
  15. * code re-generation.
  16. *
  17. * @package <%= QCodeGen::$ApplicationName; %>
  18. * @subpackage MetaControls
  19. <%@ property_comments('objTable'); %>
  20. */
  21. class <%= $objTable->ClassName %>MetaControlGen extends QBaseClass {
  22. <%@ variable_declarations('objTable'); %>
  23. <%@ constructor('objTable'); %>
  24. ///////////////////////////////////////////////
  25. // PUBLIC CREATE and REFRESH METHODS
  26. ///////////////////////////////////////////////
  27. <%@ create_methods('objTable'); %>
  28. <%@ refresh_methods('objTable'); %>
  29. ///////////////////////////////////////////////
  30. // PROTECTED UPDATE METHODS for ManyToManyReferences (if any)
  31. ///////////////////////////////////////////////
  32. <%@ update_methods('objTable'); %>
  33. ///////////////////////////////////////////////
  34. // PUBLIC <%= strtoupper($objTable->ClassName); %> OBJECT MANIPULATORS
  35. ///////////////////////////////////////////////
  36. <%@ save_object('objTable'); %>
  37. <%@ delete_object('objTable'); %>
  38. ///////////////////////////////////////////////
  39. // PUBLIC GETTERS and SETTERS
  40. ///////////////////////////////////////////////
  41. <%@ property_get('objTable'); %>
  42. <%@ property_set('objTable'); %>
  43. }
  44. ?>