Example #1
0
 public function __toString()
 {
     $attributeLabel = ModelFormAttributeLabelsUtil::getTranslatedAttributeLabelByLabels($this->attributeLabels);
     if ($attributeLabel == null) {
         return Zurmo::t('DesignerModule', '(Unnamed)');
     }
     return $attributeLabel;
 }
Example #2
0
 protected function renderControlNonEditable()
 {
     $attributeLabel = ModelFormAttributeLabelsUtil::getTranslatedAttributeLabelByLabels($this->model->{$this->attribute});
     return Yii::app()->format->text($attributeLabel);
 }