本文整理汇总了PHP中BizSystem::GetObjectFactory方法的典型用法代码示例。如果您正苦于以下问题:PHP BizSystem::GetObjectFactory方法的具体用法?PHP BizSystem::GetObjectFactory怎么用?PHP BizSystem::GetObjectFactory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BizSystem
的用法示例。
在下文中一共展示了BizSystem::GetObjectFactory方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getStyle
/**
* Get the style text of the control
* @return string style text
*/
protected function getStyle()
{
$cls = $this->m_cssClass ? "class='" . $this->m_cssClass . "' " : null;
$formobj = $this->getFormObj();
if ($this->m_Width) {
if ($this->m_Width >= 0) {
$style .= "width:" . $this->m_Width . ";";
}
} else {
if ($formobj->m_DataObjName && $this->m_FieldName) {
$cType = strtoupper($this->m_Type);
if ($cType != "TEXTAREA") {
// $bizobj = BizSystem::GetObjectFactory()->getObject($formobj->m_DataObjName);
$bizobj = BizSystem::GetObjectFactory()->createObject($formobj->m_DataObjName);
$length = $bizobj->getField($this->m_FieldName)->m_Length;
if ($length && $length > 0) {
$width = $length * 10;
if ($width > 700) {
$width = 700;
}
$style .= "width:" . $width . ";";
}
}
}
}
if ($this->m_Height && $this->m_Height >= 0) {
$style .= "height:" . $this->m_Height . ";";
}
if ($this->m_Upshift) {
$style .= "text-transform:uppercase;";
}
if ($this->m_Style) {
$style .= $this->m_Style;
}
if (!isset($style) && !$cls) {
return null;
}
if (isset($style)) {
$style = Expression::evaluateExpression($style, $formobj);
$style = "style='{$style}'";
}
if ($cls) {
$style = $cls . " " . $style;
}
return $style;
}