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.
 
 
 

31 lines
1.6 KiB

/**
* Create and setup QIntegerTextBox <%= $strControlId %>
* @param string $strControlId optional ControlId to use
* @return QIntegerTextBox
*/
public function <%= $strControlId %>_Create($strControlId = null) {
$this-><%= $strControlId %> = new QIntegerTextBox($this->objParentObject, $strControlId);
$this-><%= $strControlId %>->Name = QApplication::Translate('<%= QConvertNotation::WordsFromCamelCase($objColumn->PropertyName) %>');
$this-><%= $strControlId %>->Text = $this-><%= $strObjectName %>-><%= $objColumn->PropertyName %>;
<% if ($objColumn->NotNull) { %>
$this-><%=$strControlId %>->Required = true;
<% } %>
return $this-><%= $strControlId %>;
}
/**
* Create and setup QLabel <%= $strLabelId %>
* @param string $strControlId optional ControlId to use
* @param string $strFormat optional sprintf format to use
* @return QLabel
*/
public function <%= $strLabelId %>_Create($strControlId = null, $strFormat = null) {
$this-><%= $strLabelId %> = new QLabel($this->objParentObject, $strControlId);
$this-><%= $strLabelId %>->Name = QApplication::Translate('<%= QConvertNotation::WordsFromCamelCase($objColumn->PropertyName) %>');
$this-><%= $strLabelId %>->Text = $this-><%= $strObjectName %>-><%= $objColumn->PropertyName %>;
<% if ($objColumn->NotNull) { %>
$this-><%=$strLabelId %>->Required = true;
<% } %>
$this-><%= $strLabelId %>->Format = $strFormat;
return $this-><%= $strLabelId %>;
}