| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 |
|
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 |
|
|---|
| 50 |
|
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 |
class TTabPanel extends TWebControl implements IPostBackDataHandler |
|---|
| 58 |
{ |
|---|
| 59 |
private $_dataChanged=false; |
|---|
| 60 |
|
|---|
| 61 |
|
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 |
protected function getTagName() |
|---|
| 65 |
{ |
|---|
| 66 |
return 'div'; |
|---|
| 67 |
} |
|---|
| 68 |
|
|---|
| 69 |
|
|---|
| 70 |
|
|---|
| 71 |
|
|---|
| 72 |
|
|---|
| 73 |
|
|---|
| 74 |
|
|---|
| 75 |
public function addParsedObject($object) |
|---|
| 76 |
{ |
|---|
| 77 |
if($object instanceof TTabView) |
|---|
| 78 |
$this->getControls()->add($object); |
|---|
| 79 |
} |
|---|
| 80 |
|
|---|
| 81 |
|
|---|
| 82 |
|
|---|
| 83 |
|
|---|
| 84 |
|
|---|
| 85 |
|
|---|
| 86 |
|
|---|
| 87 |
public function getActiveViewIndex() |
|---|
| 88 |
{ |
|---|
| 89 |
return $this->getViewState('ActiveViewIndex',0); |
|---|
| 90 |
} |
|---|
| 91 |
|
|---|
| 92 |
|
|---|
| 93 |
|
|---|
| 94 |
|
|---|
| 95 |
|
|---|
| 96 |
public function setActiveViewIndex($value) |
|---|
| 97 |
{ |
|---|
| 98 |
$this->setViewState('ActiveViewIndex',TPropertyValue::ensureInteger($value),0); |
|---|
| 99 |
} |
|---|
| 100 |
|
|---|
| 101 |
|
|---|
| 102 |
|
|---|
| 103 |
|
|---|
| 104 |
|
|---|
| 105 |
|
|---|
| 106 |
|
|---|
| 107 |
public function getActiveViewID() |
|---|
| 108 |
{ |
|---|
| 109 |
return $this->getViewState('ActiveViewID',''); |
|---|
| 110 |
} |
|---|
| 111 |
|
|---|
| 112 |
|
|---|
| 113 |
|
|---|
| 114 |
|
|---|
| 115 |
public function setActiveViewID($value) |
|---|
| 116 |
{ |
|---|
| 117 |
$this->setViewState('ActiveViewID',$value,''); |
|---|
| 118 |
} |
|---|
| 119 |
|
|---|
| 120 |
|
|---|
| 121 |
|
|---|
| 122 |
|
|---|
| 123 |
|
|---|
| 124 |
|
|---|
| 125 |
|
|---|
| 126 |
|
|---|
| 127 |
public function getActiveView() |
|---|
| 128 |
{ |
|---|
| 129 |
$activeView=null; |
|---|
| 130 |
$views=$this->getViews(); |
|---|
| 131 |
if(($id=$this->getActiveViewID())!=='') |
|---|
| 132 |
{ |
|---|
| 133 |
if(($index=$views->findIndexByID($id))>=0) |
|---|
| 134 |
$activeView=$views->itemAt($index); |
|---|
| 135 |
else |
|---|
| 136 |
throw new TInvalidDataValueException('tabpanel_activeviewid_invalid',$id); |
|---|
| 137 |
} |
|---|
| 138 |
else if(($index=$this->getActiveViewIndex())>=0) |
|---|
| 139 |
{ |
|---|
| 140 |
if($index<$views->getCount()) |
|---|
| 141 |
$activeView=$views->itemAt($index); |
|---|
| 142 |
else |
|---|
| 143 |
throw new TInvalidDataValueException('tabpanel_activeviewindex_invalid',$index); |
|---|
| 144 |
} |
|---|
| 145 |
else |
|---|
| 146 |
{ |
|---|
| 147 |
foreach($views as $index=>$view) |
|---|
| 148 |
{ |
|---|
| 149 |
if($view->getActive()) |
|---|
| 150 |
{ |
|---|
| 151 |
$activeView=$view; |
|---|
| 152 |
break; |
|---|
| 153 |
} |
|---|
| 154 |
} |
|---|
| 155 |
} |
|---|
| 156 |
if($activeView!==null) |
|---|
| 157 |
$this->activateView($activeView); |
|---|
| 158 |
return $activeView; |
|---|
| 159 |
} |
|---|
| 160 |
|
|---|
| 161 |
|
|---|
| 162 |
|
|---|
| 163 |
|
|---|
| 164 |
|
|---|
| 165 |
public function setActiveView($view) |
|---|
| 166 |
{ |
|---|
| 167 |
if($this->getViews()->indexOf($view)>=0) |
|---|
| 168 |
$this->activateView($view); |
|---|
| 169 |
else |
|---|
| 170 |
throw new TInvalidOperationException('tabpanel_view_inexistent'); |
|---|
| 171 |
} |
|---|
| 172 |
|
|---|
| 173 |
|
|---|
| 174 |
|
|---|
| 175 |
|
|---|
| 176 |
public function getCssUrl() |
|---|
| 177 |
{ |
|---|
| 178 |
return $this->getViewState('CssUrl',''); |
|---|
| 179 |
} |
|---|
| 180 |
|
|---|
| 181 |
|
|---|
| 182 |
|
|---|
| 183 |
|
|---|
| 184 |
public function setCssUrl($value) |
|---|
| 185 |
{ |
|---|
| 186 |
$this->setViewState('CssUrl',TPropertyValue::ensureString($value),''); |
|---|
| 187 |
} |
|---|
| 188 |
|
|---|
| 189 |
|
|---|
| 190 |
|
|---|
| 191 |
|
|---|
| 192 |
public function getCssClass() |
|---|
| 193 |
{ |
|---|
| 194 |
$cssClass=parent::getCssClass(); |
|---|
| 195 |
return $cssClass===''?'tab-panel':$cssClass; |
|---|
| 196 |
} |
|---|
| 197 |
|
|---|
| 198 |
|
|---|
| 199 |
|
|---|
| 200 |
|
|---|
| 201 |
public function getViewCssClass() |
|---|
| 202 |
{ |
|---|
| 203 |
return $this->getViewStyle()->getCssClass(); |
|---|
| 204 |
} |
|---|
| 205 |
|
|---|
| 206 |
|
|---|
| 207 |
|
|---|
| 208 |
|
|---|
| 209 |
public function setViewCssClass($value) |
|---|
| 210 |
{ |
|---|
| 211 |
$this->getViewStyle()->setCssClass($value); |
|---|
| 212 |
} |
|---|
| 213 |
|
|---|
| 214 |
|
|---|
| 215 |
|
|---|
| 216 |
|
|---|
| 217 |
public function getViewStyle() |
|---|
| 218 |
{ |
|---|
| 219 |
if(($style=$this->getViewState('ViewStyle',null))===null) |
|---|
| 220 |
{ |
|---|
| 221 |
$style=new TStyle; |
|---|
| 222 |
$style->setCssClass('tab-view'); |
|---|
| 223 |
$this->setViewState('ViewStyle',$style,null); |
|---|
| 224 |
} |
|---|
| 225 |
return $style; |
|---|
| 226 |
} |
|---|
| 227 |
|
|---|
| 228 |
|
|---|
| 229 |
|
|---|
| 230 |
|
|---|
| 231 |
public function getTabCssClass() |
|---|
| 232 |
{ |
|---|
| 233 |
return $this->getTabStyle()->getCssClass(); |
|---|
| 234 |
} |
|---|
| 235 |
|
|---|
| 236 |
|
|---|
| 237 |
|
|---|
| 238 |
|
|---|
| 239 |
public function setTabCssClass($value) |
|---|
| 240 |
{ |
|---|
| 241 |
$this->getTabStyle()->setCssClass($value); |
|---|
| 242 |
} |
|---|
| 243 |
|
|---|
| 244 |
|
|---|
| 245 |
|
|---|
| 246 |
|
|---|
| 247 |
public function getTabStyle() |
|---|
| 248 |
{ |
|---|
| 249 |
if(($style=$this->getViewState('TabStyle',null))===null) |
|---|
| 250 |
{ |
|---|
| 251 |
$style=new TStyle; |
|---|
| 252 |
$style->setCssClass('tab-normal'); |
|---|
| 253 |
$this->setViewState('TabStyle',$style,null); |
|---|
| 254 |
} |
|---|
| 255 |
return $style; |
|---|
| 256 |
} |
|---|
| 257 |
|
|---|
| 258 |
|
|---|
| 259 |
|
|---|
| 260 |
|
|---|
| 261 |
public function getActiveTabCssClass() |
|---|
| 262 |
{ |
|---|
| 263 |
return $this->getActiveTabStyle()->getCssClass(); |
|---|
| 264 |
} |
|---|
| 265 |
|
|---|
| 266 |
|
|---|
| 267 |
|
|---|
| 268 |
|
|---|
| 269 |
public function setActiveTabCssClass($value) |
|---|
| 270 |
{ |
|---|
| 271 |
$this->getActiveTabStyle()->setCssClass($value); |
|---|
| 272 |
} |
|---|
| 273 |
|
|---|
| 274 |
|
|---|
| 275 |
|
|---|
| 276 |
|
|---|
| 277 |
public function getActiveTabStyle() |
|---|
| 278 |
{ |
|---|
| 279 |
if(($style=$this->getViewState('ActiveTabStyle',null))===null) |
|---|
| 280 |
{ |
|---|
| 281 |
$style=new TStyle; |
|---|
| 282 |
$style->setCssClass('tab-active'); |
|---|
| 283 |
$this->setViewState('ActiveTabStyle',$style,null); |
|---|
| 284 |
} |
|---|
| 285 |
return $style; |
|---|
| 286 |
} |
|---|
| 287 |
|
|---|
| 288 |
|
|---|
| 289 |
|
|---|
| 290 |
|
|---|
| 291 |
|
|---|
| 292 |
|
|---|
| 293 |
protected function activateView($view) |
|---|
| 294 |
{ |
|---|
| 295 |
$this->setActiveViewIndex(-1); |
|---|
| 296 |
$this->setActiveViewID(''); |
|---|
| 297 |
foreach($this->getViews() as $index=>$v) |
|---|
| 298 |
{ |
|---|
| 299 |
if($view===$v) |
|---|
| 300 |
{ |
|---|
| 301 |
$this->setActiveViewIndex($index); |
|---|
| 302 |
$this->setActiveViewID($view->getID(false)); |
|---|
| 303 |
$view->setActive(true); |
|---|
| 304 |
} |
|---|
| 305 |
else |
|---|
| 306 |
$v->setActive(false); |
|---|
| 307 |
} |
|---|
| 308 |
} |
|---|
| 309 |
|
|---|
| 310 |
|
|---|
| 311 |
|
|---|
| 312 |
|
|---|
| 313 |
|
|---|
| 314 |
|
|---|
| 315 |
|
|---|
| 316 |
|
|---|
| 317 |
public function loadPostData($key,$values) |
|---|
| 318 |
{ |
|---|
| 319 |
if(($index=$values[$this->getClientID().'_1'])!==null) |
|---|
| 320 |
{ |
|---|
| 321 |
$index=(int)$index; |
|---|
| 322 |
$currentIndex=$this->getActiveViewIndex(); |
|---|
| 323 |
if($currentIndex!==$index) |
|---|
| 324 |
{ |
|---|
| 325 |
$this->setActiveViewID(''); |
|---|
| 326 |
$this->setActiveViewIndex($index); |
|---|
| 327 |
return $this->_dataChanged=true; |
|---|
| 328 |
} |
|---|
| 329 |
} |
|---|
| 330 |
return false; |
|---|
| 331 |
} |
|---|
| 332 |
|
|---|
| 333 |
|
|---|
| 334 |
|
|---|
| 335 |
|
|---|
| 336 |
|
|---|
| 337 |
|
|---|
| 338 |
|
|---|
| 339 |
|
|---|
| 340 |
public function raisePostDataChangedEvent() |
|---|
| 341 |
{ |
|---|
| 342 |
|
|---|
| 343 |
} |
|---|
| 344 |
|
|---|
| 345 |
|
|---|
| 346 |
|
|---|
| 347 |
|
|---|
| 348 |
|
|---|
| 349 |
|
|---|
| 350 |
public function getDataChanged() |
|---|
| 351 |
{ |
|---|
| 352 |
return $this->_dataChanged; |
|---|
| 353 |
} |
|---|
| 354 |
|
|---|
| 355 |
|
|---|
| 356 |
|
|---|
| 357 |
|
|---|
| 358 |
|
|---|
| 359 |
protected function addAttributesToRender($writer) |
|---|
| 360 |
{ |
|---|
| 361 |
$writer->addAttribute('id',$this->getClientID()); |
|---|
| 362 |
$this->setCssClass($this->getCssClass()); |
|---|
| 363 |
parent::addAttributesToRender($writer); |
|---|
| 364 |
} |
|---|
| 365 |
|
|---|
| 366 |
|
|---|
| 367 |
|
|---|
| 368 |
|
|---|
| 369 |
|
|---|
| 370 |
|
|---|
| 371 |
public function onPreRender($param) |
|---|
| 372 |
{ |
|---|
| 373 |
parent::onPreRender($param); |
|---|
| 374 |
$this->getActiveView(); |
|---|
| 375 |
$this->registerStyleSheet(); |
|---|
| 376 |
$this->registerClientScript(); |
|---|
| 377 |
} |
|---|
| 378 |
|
|---|
| 379 |
|
|---|
| 380 |
|
|---|
| 381 |
|
|---|
| 382 |
|
|---|
| 383 |
|
|---|
| 384 |
protected function registerStyleSheet() |
|---|
| 385 |
{ |
|---|
| 386 |
if(($url=$this->getCssUrl())==='') |
|---|
| 387 |
$url=$this->getApplication()->getAssetManager()->publishFilePath(dirname(__FILE__).DIRECTORY_SEPARATOR.'assets'.DIRECTORY_SEPARATOR.'tabpanel.css'); |
|---|
| 388 |
$this->getPage()->getClientScript()->registerStyleSheetFile($url,$url); |
|---|
| 389 |
} |
|---|
| 390 |
|
|---|
| 391 |
|
|---|
| 392 |
|
|---|
| 393 |
|
|---|
| 394 |
protected function registerClientScript() |
|---|
| 395 |
{ |
|---|
| 396 |
$id=$this->getClientID(); |
|---|
| 397 |
$options=TJavaScript::encode($this->getClientOptions()); |
|---|
| 398 |
$className=$this->getClientClassName(); |
|---|
| 399 |
$page=$this->getPage(); |
|---|
| 400 |
$cs=$page->getClientScript(); |
|---|
| 401 |
$cs->registerPradoScript('tabpanel'); |
|---|
| 402 |
$code="new $className($options);"; |
|---|
| 403 |
$cs->registerEndScript("prado:$id", $code); |
|---|
| 404 |
$cs->registerHiddenField($id.'_1',$this->getActiveViewIndex()); |
|---|
| 405 |
$page->registerRequiresPostData($this); |
|---|
| 406 |
} |
|---|
| 407 |
|
|---|
| 408 |
|
|---|
| 409 |
|
|---|
| 410 |
|
|---|
| 411 |
|
|---|
| 412 |
|
|---|
| 413 |
protected function getClientClassName() |
|---|
| 414 |
{ |
|---|
| 415 |
return 'Prado.WebUI.TTabPanel'; |
|---|
| 416 |
} |
|---|
| 417 |
|
|---|
| 418 |
|
|---|
| 419 |
|
|---|
| 420 |
|
|---|
| 421 |
protected function getClientOptions() |
|---|
| 422 |
{ |
|---|
| 423 |
$options['ID']=$this->getClientID(); |
|---|
| 424 |
$options['ActiveCssClass']=$this->getActiveTabCssClass(); |
|---|
| 425 |
$options['NormalCssClass']=$this->getTabCssClass(); |
|---|
| 426 |
$viewIDs=array(); |
|---|
| 427 |
foreach($this->getViews() as $view) |
|---|
| 428 |
{ |
|---|
| 429 |
if($view->getVisible()) |
|---|
| 430 |
$viewIDs[]=$view->getClientID(); |
|---|
| 431 |
} |
|---|
| 432 |
$options['Views']='[\''.implode('\',\'',$viewIDs).'\']'; |
|---|
| 433 |
|
|---|
| 434 |
return $options; |
|---|
| 435 |
} |
|---|
| 436 |
|
|---|
| 437 |
|
|---|
| 438 |
|
|---|
| 439 |
|
|---|
| 440 |
|
|---|
| 441 |
protected function createControlCollection() |
|---|
| 442 |
{ |
|---|
| 443 |
return new TTabViewCollection($this); |
|---|
| 444 |
} |
|---|
| 445 |
|
|---|
| 446 |
|
|---|
| 447 |
|
|---|
| 448 |
|
|---|
| 449 |
public function getViews() |
|---|
| 450 |
{ |
|---|
| 451 |
return $this->getControls(); |
|---|
| 452 |
} |
|---|
| 453 |
|
|---|
| 454 |
|
|---|
| 455 |
|
|---|
| 456 |
|
|---|
| 457 |
|
|---|
| 458 |
public function renderContents($writer) |
|---|
| 459 |
{ |
|---|
| 460 |
$views=$this->getViews(); |
|---|
| 461 |
if($views->getCount()>0) |
|---|
| 462 |
{ |
|---|
| 463 |
$writer->writeLine(); |
|---|
| 464 |
|
|---|
| 465 |
foreach($views as $view) |
|---|
| 466 |
{ |
|---|
| 467 |
$view->renderTab($writer); |
|---|
| 468 |
$writer->writeLine(); |
|---|
| 469 |
} |
|---|
| 470 |
|
|---|
| 471 |
foreach($views as $view) |
|---|
| 472 |
{ |
|---|
| 473 |
$view->renderControl($writer); |
|---|
| 474 |
$writer->writeLine(); |
|---|
| 475 |
} |
|---|
| 476 |
} |
|---|
| 477 |
} |
|---|
| 478 |
} |
|---|
| 479 |
|
|---|
| 480 |
|
|---|
| 481 |
|
|---|
| 482 |
|
|---|
| 483 |
|
|---|
| 484 |
|
|---|
| 485 |
|
|---|
| 486 |
|
|---|
| 487 |
|
|---|
| 488 |
|
|---|
| 489 |
|
|---|
| 490 |
|
|---|
| 491 |
|
|---|
| 492 |
|
|---|
| 493 |
|
|---|
| 494 |
|
|---|
| 495 |
|
|---|
| 496 |
|
|---|
| 497 |
|
|---|
| 498 |
|
|---|
| 499 |
|
|---|
| 500 |
|
|---|
| 501 |
class TTabView extends TWebControl |
|---|
| 502 |
{ |
|---|
| 503 |
private $_active=false; |
|---|
| 504 |
|
|---|
| 505 |
|
|---|
| 506 |
|
|---|
| 507 |
|
|---|
| 508 |
protected function getTagName() |
|---|
| 509 |
{ |
|---|
| 510 |
return 'div'; |
|---|
| 511 |
} |
|---|
| 512 |
|
|---|
| 513 |
|
|---|
| 514 |
|
|---|
| 515 |
|
|---|
| 516 |
|
|---|
| 517 |
protected function addAttributesToRender($writer) |
|---|
| 518 |
{ |
|---|
| 519 |
if(!$this->getActive() && $this->getPage()->getClientSupportsJavaScript()) |
|---|
| 520 |
$this->getStyle()->setStyleField('display','none'); |
|---|
| 521 |
|
|---|
| 522 |
$this->getStyle()->mergeWith($this->getParent()->getViewStyle()); |
|---|
| 523 |
|
|---|
| 524 |
parent::addAttributesToRender($writer); |
|---|
| 525 |
|
|---|
| 526 |
$writer->addAttribute('id',$this->getClientID()); |
|---|
| 527 |
} |
|---|
| 528 |
|
|---|
| 529 |
|
|---|
| 530 |
|
|---|
| 531 |
|
|---|
| 532 |
public function getCaption() |
|---|
| 533 |
{ |
|---|
| 534 |
return $this->getViewState('Caption',''); |
|---|
| 535 |
} |
|---|
| 536 |
|
|---|
| 537 |
|
|---|
| 538 |
|
|---|
| 539 |
|
|---|
| 540 |
public function setCaption($value) |
|---|
| 541 |
{ |
|---|
| 542 |
$this->setViewState('Caption',TPropertyValue::ensureString($value),''); |
|---|
| 543 |
} |
|---|
| 544 |
|
|---|
| 545 |
|
|---|
| 546 |
|
|---|
| 547 |
|
|---|
| 548 |
public function getNavigateUrl() |
|---|
| 549 |
{ |
|---|
| 550 |
return $this->getViewState('NavigateUrl',''); |
|---|
| 551 |
} |
|---|
| 552 |
|
|---|
| 553 |
|
|---|
| 554 |
|
|---|
| 555 |
|
|---|
| 556 |
|
|---|
| 557 |
|
|---|
| 558 |
public function setNavigateUrl($value) |
|---|
| 559 |
{ |
|---|
| 560 |
$this->setViewState('NavigateUrl',TPropertyValue::ensureString($value),''); |
|---|
| 561 |
} |
|---|
| 562 |
|
|---|
| 563 |
|
|---|
| 564 |
|
|---|
| 565 |
|
|---|
| 566 |
public function getText() |
|---|
| 567 |
{ |
|---|
| 568 |
return $this->getViewState('Text',''); |
|---|
| 569 |
} |
|---|
| 570 |
|
|---|
| 571 |
|
|---|
| 572 |
|
|---|
| 573 |
|
|---|
| 574 |
|
|---|
| 575 |
|
|---|
| 576 |
public function setText($value) |
|---|
| 577 |
{ |
|---|
| 578 |
$this->setViewState('Text',TPropertyValue::ensureString($value),''); |
|---|
| 579 |
} |
|---|
| 580 |
|
|---|
| 581 |
|
|---|
| 582 |
|
|---|
| 583 |
|
|---|
| 584 |
public function getActive() |
|---|
| 585 |
{ |
|---|
| 586 |
return $this->_active; |
|---|
| 587 |
} |
|---|
| 588 |
|
|---|
| 589 |
|
|---|
| 590 |
|
|---|
| 591 |
|
|---|
| 592 |
public function setActive($value) |
|---|
| 593 |
{ |
|---|
| 594 |
$this->_active=TPropertyValue::ensureBoolean($value); |
|---|
| 595 |
} |
|---|
| 596 |
|
|---|
| 597 |
|
|---|
| 598 |
|
|---|
| 599 |
|
|---|
| 600 |
|
|---|
| 601 |
public function renderContents($writer) |
|---|
| 602 |
{ |
|---|
| 603 |
if(($text=$this->getText())!=='') |
|---|
| 604 |
$writer->write($text); |
|---|
| 605 |
else if($this->getHasControls()) |
|---|
| 606 |
parent::renderContents($writer); |
|---|
| 607 |
} |
|---|
| 608 |
|
|---|
| 609 |
|
|---|
| 610 |
|
|---|
| 611 |
|
|---|
| 612 |
|
|---|
| 613 |
public function renderTab($writer) |
|---|
| 614 |
{ |
|---|
| 615 |
if($this->getVisible(false) && $this->getPage()->getClientSupportsJavaScript()) |
|---|
| 616 |
{ |
|---|
| 617 |
$writer->addAttribute('id',$this->getClientID().'_0'); |
|---|
|
|---|