A Qcodo based CMS/ecommerce framework
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.

59 lines
2.4 KiB

13 years ago
  1. <?php
  2. require(__DATAGEN_META_CONTROLS__ . '/ContentBlockMetaControlGen.class.php');
  3. /**
  4. * This is a MetaControl customizable subclass, providing a QForm or QPanel access to event handlers
  5. * and QControls to perform the Create, Edit, and Delete functionality of the
  6. * ContentBlock class. This code-generated class extends from
  7. * the generated MetaControl class, which contains all the basic elements to help a QPanel or QForm
  8. * display an HTML form that can manipulate a single ContentBlock 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 ContentBlockMetaControl
  12. * class.
  13. *
  14. * This file is intended to be modified. Subsequent code regenerations will NOT modify
  15. * or overwrite this file.
  16. *
  17. * @package Quasi
  18. * @subpackage MetaControls
  19. */
  20. class ContentBlockMetaControl extends ContentBlockMetaControlGen {
  21. // Controls that allow the viewing of ContentBlock's individual data fields as QPanels
  22. protected $pnlTitle;
  23. protected $pnlDescription;
  24. /**
  25. * Create and setup QPanel pnlTitle
  26. * @param string $strControlId optional ControlId to use
  27. * @return QPanel
  28. */
  29. public function pnlTitle_Create($strControlId = null)
  30. {
  31. if($strControlId)
  32. $this->pnlTitle = new QPanel($this->objParentObject, $strControlId . 'Title');
  33. else
  34. $this->pnlTitle = new QPanel($this->objParentObject);
  35. $this->pnlTitle->Name = QApplication::Translate('Title');
  36. $this->pnlTitle->Text = $this->objContentBlock->Title;
  37. return $this->pnlTitle;
  38. }
  39. /**
  40. * Create and setup QPanel pnlDescription
  41. * @param string $strControlId optional ControlId to use
  42. * @return QPanel
  43. */
  44. public function pnlDescription_Create($strControlId = null)
  45. {
  46. if($strControlId)
  47. $this->pnlDescription = new QPanel($this->objParentObject, $strControlId . 'Description');
  48. else
  49. $this->pnlDescription = new QPanel($this->objParentObject);
  50. $this->pnlDescription->Name = QApplication::Translate('Description');
  51. $this->pnlDescription->Text = $this->objContentBlock->Description;
  52. return $this->pnlDescription;
  53. }
  54. }
  55. ?>