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

12 years ago
  1. <?php
  2. require(__DATAGEN_META_CONTROLS__ . '/ProductMetaControlGen.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. * Product 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 Product 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 ProductMetaControl
  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 ProductMetaControl extends ProductMetaControlGen
  21. {
  22. protected $lblManufacturer;
  23. protected $lblSupplier;
  24. /**
  25. * Create and setup QLabel lblSupplier
  26. * @param string $strControlId optional ControlId to use
  27. * @return QLabel
  28. */
  29. public function lblSupplier_Create($strControlId = null)
  30. {
  31. $this->lblSupplier = new QLabel($this->objParentObject, $strControlId);
  32. $this->lblSupplier->Name = QApplication::Translate('Supplier');
  33. $this->lblSupplier->Text = ($this->objProduct->Supplier) ? $this->objProduct->Supplier->__toString() : null;
  34. return $this->lblSupplier;
  35. }
  36. /**
  37. * Create and setup QLabel lblManufacturer
  38. * @param string $strControlId optional ControlId to use
  39. * @return QLabel
  40. */
  41. public function lblManufacturer_Create($strControlId = null)
  42. {
  43. $this->lblManufacturer = new QLabel($this->objParentObject, $strControlId);
  44. $this->lblManufacturer->Name = QApplication::Translate('Manufacturer');
  45. $this->lblManufacturer->Text = ($this->objProduct->Manufacturer) ? $this->objProduct->Manufacturer->__toString() : null;
  46. return $this->lblManufacturer;
  47. }
  48. /**
  49. * Create and setup QLabel lblType
  50. * @param string $strControlId optional ControlId to use
  51. * @return QLabel
  52. */
  53. public function lblType_Create($strControlId = null)
  54. {
  55. return $this->lblTypeId_Create($strControlId);
  56. }
  57. }
  58. ?>