|
@@ 321-327 (lines=7) @@
|
| 318 |
|
* @access public |
| 319 |
|
* @see setAttributes(),getAttribute(), clearAttribute() |
| 320 |
|
*/ |
| 321 |
|
public function setAttribute($template, $attribute, $value) |
| 322 |
|
{ |
| 323 |
|
$template = strtoupper($template); |
| 324 |
|
$attribute = strtolower($attribute); |
| 325 |
|
|
| 326 |
|
$this->attributes[$template][$attribute] = $value; |
| 327 |
|
} |
| 328 |
|
|
| 329 |
|
/** |
| 330 |
|
* Sets several attribute of a template |
|
@@ 369-375 (lines=7) @@
|
| 366 |
|
* @see setAttribute(), setAttributes(), clearAttribute() |
| 367 |
|
*/ |
| 368 |
|
|
| 369 |
|
public function getAttribute($template, $attribute) |
| 370 |
|
{ |
| 371 |
|
$template = strtoupper($template); |
| 372 |
|
$attribute = strtolower($attribute); |
| 373 |
|
|
| 374 |
|
return $this->attributes[$template][$attribute]; |
| 375 |
|
} |
| 376 |
|
|
| 377 |
|
/** |
| 378 |
|
* Clears an attribute of a template |
|
@@ 387-393 (lines=7) @@
|
| 384 |
|
* @access public |
| 385 |
|
* @see setAttribute(), setAttributes(), getAttribute() |
| 386 |
|
*/ |
| 387 |
|
public function clearAttribute($template, $attribute) |
| 388 |
|
{ |
| 389 |
|
$template = strtoupper($template); |
| 390 |
|
$attribute = strtolower($attribute); |
| 391 |
|
|
| 392 |
|
unset($this->attributes[$template][$attribute]); |
| 393 |
|
} |
| 394 |
|
|
| 395 |
|
/** |
| 396 |
|
* Adds a subtemplate for a condition or oddeven template |