|
@@ 240-244 (lines=5) @@
|
| 237 |
|
public function initCommonVar($varname, $displayOnForm = true, $default = 'notdefined') |
| 238 |
|
{ |
| 239 |
|
switch ($varname) { |
| 240 |
|
case 'dohtml': |
| 241 |
|
$value = 'notdefined' !== $default ? $default : true; |
| 242 |
|
$this->initVar($varname, XOBJ_DTYPE_INT, $value, false, null, '', false, _CO_SOBJECT_DOHTML_FORM_CAPTION, '', false, true, $displayOnForm); |
| 243 |
|
$this->setControl($varname, 'yesno'); |
| 244 |
|
break; |
| 245 |
|
|
| 246 |
|
case 'dobr': |
| 247 |
|
$value = ('notdefined' === $default) ? true : $default; |
|
@@ 246-250 (lines=5) @@
|
| 243 |
|
$this->setControl($varname, 'yesno'); |
| 244 |
|
break; |
| 245 |
|
|
| 246 |
|
case 'dobr': |
| 247 |
|
$value = ('notdefined' === $default) ? true : $default; |
| 248 |
|
$this->initVar($varname, XOBJ_DTYPE_INT, $value, false, null, '', false, _CO_SOBJECT_DOBR_FORM_CAPTION, '', false, true, $displayOnForm); |
| 249 |
|
$this->setControl($varname, 'yesno'); |
| 250 |
|
break; |
| 251 |
|
|
| 252 |
|
case 'doimage': |
| 253 |
|
$value = 'notdefined' !== $default ? $default : true; |
|
@@ 252-256 (lines=5) @@
|
| 249 |
|
$this->setControl($varname, 'yesno'); |
| 250 |
|
break; |
| 251 |
|
|
| 252 |
|
case 'doimage': |
| 253 |
|
$value = 'notdefined' !== $default ? $default : true; |
| 254 |
|
$this->initVar($varname, XOBJ_DTYPE_INT, $value, false, null, '', false, _CO_SOBJECT_DOIMAGE_FORM_CAPTION, '', false, true, $displayOnForm); |
| 255 |
|
$this->setControl($varname, 'yesno'); |
| 256 |
|
break; |
| 257 |
|
|
| 258 |
|
case 'dosmiley': |
| 259 |
|
$value = 'notdefined' !== $default ? $default : true; |
|
@@ 258-262 (lines=5) @@
|
| 255 |
|
$this->setControl($varname, 'yesno'); |
| 256 |
|
break; |
| 257 |
|
|
| 258 |
|
case 'dosmiley': |
| 259 |
|
$value = 'notdefined' !== $default ? $default : true; |
| 260 |
|
$this->initVar($varname, XOBJ_DTYPE_INT, $value, false, null, '', false, _CO_SOBJECT_DOSMILEY_FORM_CAPTION, '', false, true, $displayOnForm); |
| 261 |
|
$this->setControl($varname, 'yesno'); |
| 262 |
|
break; |
| 263 |
|
|
| 264 |
|
case 'doxcode': |
| 265 |
|
$value = 'notdefined' !== $default ? $default : true; |
|
@@ 264-268 (lines=5) @@
|
| 261 |
|
$this->setControl($varname, 'yesno'); |
| 262 |
|
break; |
| 263 |
|
|
| 264 |
|
case 'doxcode': |
| 265 |
|
$value = 'notdefined' !== $default ? $default : true; |
| 266 |
|
$this->initVar($varname, XOBJ_DTYPE_INT, $value, false, null, '', false, _CO_SOBJECT_DOXCODE_FORM_CAPTION, '', false, true, $displayOnForm); |
| 267 |
|
$this->setControl($varname, 'yesno'); |
| 268 |
|
break; |
| 269 |
|
|
| 270 |
|
case 'meta_keywords': |
| 271 |
|
$value = 'notdefined' !== $default ? $default : ''; |
|
@@ 298-301 (lines=4) @@
|
| 295 |
|
$this->initVar($varname, XOBJ_DTYPE_ARRAY, $value, false, null, '', false, _CO_SOBJECT_HIERARCHY_PATH, _CO_SOBJECT_HIERARCHY_PATH_DSC, false, true, $displayOnForm); |
| 296 |
|
break; |
| 297 |
|
|
| 298 |
|
case 'counter': |
| 299 |
|
$value = 'notdefined' !== $default ? $default : 0; |
| 300 |
|
$this->initVar($varname, XOBJ_DTYPE_INT, $value, false, null, '', false, _CO_SOBJECT_COUNTER_FORM_CAPTION, '', false, true, $displayOnForm); |
| 301 |
|
break; |
| 302 |
|
|
| 303 |
|
case 'weight': |
| 304 |
|
$value = 'notdefined' !== $default ? $default : 0; |
|
@@ 303-306 (lines=4) @@
|
| 300 |
|
$this->initVar($varname, XOBJ_DTYPE_INT, $value, false, null, '', false, _CO_SOBJECT_COUNTER_FORM_CAPTION, '', false, true, $displayOnForm); |
| 301 |
|
break; |
| 302 |
|
|
| 303 |
|
case 'weight': |
| 304 |
|
$value = 'notdefined' !== $default ? $default : 0; |
| 305 |
|
$this->initVar($varname, XOBJ_DTYPE_INT, $value, false, null, '', false, _CO_SOBJECT_WEIGHT_FORM_CAPTION, '', true, true, $displayOnForm); |
| 306 |
|
break; |
| 307 |
|
case 'custom_css': |
| 308 |
|
$value = 'notdefined' !== $default ? $default : ''; |
| 309 |
|
$this->initVar($varname, XOBJ_DTYPE_TXTAREA, $value, false, null, '', false, _CO_SOBJECT_CUSTOM_CSS, _CO_SOBJECT_CUSTOM_CSS_DSC, false, true, $displayOnForm); |