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