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.

13 lines
770 B

  1. /**
  2. * Create and setup QLabel <%= $strControlId %>
  3. * @param string $strControlId optional ControlId to use
  4. * @return QLabel
  5. */
  6. public function <%= $strControlId %>_Create($strControlId = null) {
  7. $this-><%= $strControlId %> = new QLabel($this->objParentObject, $strControlId);
  8. $this-><%= $strControlId %>->Name = QApplication::Translate('<%= QConvertNotation::WordsFromCamelCase($objColumn->PropertyName) %>');
  9. if ($this->blnEditMode)
  10. $this-><%= $strControlId %>->Text = $this-><%= $strObjectName %>-><%= $objColumn->PropertyName %>;
  11. else
  12. $this-><%= $strControlId %>->Text = 'N/A';
  13. return $this-><%= $strControlId %>;
  14. }