$allWs = HFormEditor::getAllFields();
$activeLangs = Lang::getActiveLangs(true);
foreach($allWs as $row){
if($row['type'] != FormDesigner::TYPE_TEXT_AREA_WS){
continue;
}
if($row['is_i18n']){
foreach($activeLangs as $lang){
$attr = $row['field'].'_'.$lang['name_iso'];
$this->{$attr} = purify($this->{$attr});
}
} else {
$this->{$row['field']} = purify($this->{$row['field']});
}
}
if(!Yii::app()->user->checkAccess('backend_access')) {
$allWs = HFormEditor::getAllFields();
$activeLangs = Lang::getActiveLangs(true);
foreach($allWs as $row){
if($row['type'] != FormDesigner::TYPE_TEXT_AREA_WS){
continue;
}
if($row['is_i18n']){
foreach($activeLangs as $lang){
$attr = $row['field'].'_'.$lang['name_iso'];
$this->{$attr} = purify($this->{$attr});
}
} else {
$this->{$row['field']} = purify($this->{$row['field']});
}
}
}
Сейчас этот форум просматривают: Google [Bot] и гости: 78