public static function pageCommercialEdit(Commercial $commercial) { $defaults = array(); $defaults['val'] = $commercial->getVals(); $props = Commercial::$_properties; /* unset($props['city']); unset($props['street']); unset($props['number']); */ $html_form = self::getForm($props, 0, $defaults); $photos_html = self::getRealtyPhotosEdit($commercial); $block_content = self::getCommercialFormEdit($html_form, $photos_html, $commercial); $block_html = self::getBlock('Редактирование объявления по коммерческой недвижимости', $block_content); return $block_html; }