| @@ 284-291 (lines=8) @@ | ||
| 281 | * |
|
| 282 | * @return Response |
|
| 283 | */ |
|
| 284 | public function assign($sTarget, $sAttribute, $sData) |
|
| 285 | { |
|
| 286 | $aAttributes = [ |
|
| 287 | 'id' => trim((string)$sTarget, " \t"), |
|
| 288 | 'prop' => trim((string)$sAttribute, " \t") |
|
| 289 | ]; |
|
| 290 | return $this->_addCommand('as', $aAttributes, trim((string)$sData, " \t\n")); |
|
| 291 | } |
|
| 292 | ||
| 293 | /** |
|
| 294 | * Add a command to assign the specified HTML content to the given element |
|
| @@ 317-324 (lines=8) @@ | ||
| 314 | * |
|
| 315 | * @return Response |
|
| 316 | */ |
|
| 317 | public function append($sTarget, $sAttribute, $sData) |
|
| 318 | { |
|
| 319 | $aAttributes = [ |
|
| 320 | 'id' => trim((string)$sTarget, " \t"), |
|
| 321 | 'prop' => trim((string)$sAttribute, " \t") |
|
| 322 | ]; |
|
| 323 | return $this->_addCommand('ap', $aAttributes, trim((string)$sData, " \t\n")); |
|
| 324 | } |
|
| 325 | ||
| 326 | /** |
|
| 327 | * Add a command to prepend the specified data to the given element's attribute |
|
| @@ 335-342 (lines=8) @@ | ||
| 332 | * |
|
| 333 | * @return Response |
|
| 334 | */ |
|
| 335 | public function prepend($sTarget, $sAttribute, $sData) |
|
| 336 | { |
|
| 337 | $aAttributes = [ |
|
| 338 | 'id' => trim((string)$sTarget, " \t"), |
|
| 339 | 'prop' => trim((string)$sAttribute, " \t") |
|
| 340 | ]; |
|
| 341 | return $this->_addCommand('pp', $aAttributes, trim((string)$sData, " \t\n")); |
|
| 342 | } |
|
| 343 | ||
| 344 | /** |
|
| 345 | * Add a command to replace a specified value with another value within the given element's attribute |
|
| @@ 391-397 (lines=7) @@ | ||
| 388 | * |
|
| 389 | * @return Response |
|
| 390 | */ |
|
| 391 | public function contextAssign($sAttribute, $sData) |
|
| 392 | { |
|
| 393 | $aAttributes = [ |
|
| 394 | 'prop' => trim((string)$sAttribute, " \t") |
|
| 395 | ]; |
|
| 396 | return $this->_addCommand('c:as', $aAttributes, trim((string)$sData, " \t\n")); |
|
| 397 | } |
|
| 398 | ||
| 399 | /** |
|
| 400 | * Add a command to append a value onto the specified member of the javascript |
|
| @@ 410-416 (lines=7) @@ | ||
| 407 | * |
|
| 408 | * @return Response |
|
| 409 | */ |
|
| 410 | public function contextAppend($sAttribute, $sData) |
|
| 411 | { |
|
| 412 | $aAttributes = [ |
|
| 413 | 'prop' => trim((string)$sAttribute, " \t") |
|
| 414 | ]; |
|
| 415 | return $this->_addCommand('c:ap', $aAttributes, trim((string)$sData, " \t\n")); |
|
| 416 | } |
|
| 417 | ||
| 418 | /** |
|
| 419 | * Add a command to prepend the speicified data to the given member of the current |
|
| @@ 429-435 (lines=7) @@ | ||
| 426 | * |
|
| 427 | * @return Response |
|
| 428 | */ |
|
| 429 | public function contextPrepend($sAttribute, $sData) |
|
| 430 | { |
|
| 431 | $aAttributes = [ |
|
| 432 | 'prop' => trim((string)$sAttribute, " \t") |
|
| 433 | ]; |
|
| 434 | return $this->_addCommand('c:pp', $aAttributes, trim((string)$sData, " \t\n")); |
|
| 435 | } |
|
| 436 | ||
| 437 | /** |
|
| 438 | * Add a command to to clear the value of the attribute specified in the sAttribute parameter |
|