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