| @@ 525-541 (lines=17) @@ | ||
| 522 | * @param boolean|integer|string $v The new value |
|
| 523 | * @return $this|\mod_link\models\PageLink The current object (for fluent API support) |
|
| 524 | */ |
|
| 525 | public function setShowOn($v) |
|
| 526 | { |
|
| 527 | if ($v !== null) { |
|
| 528 | if (is_string($v)) { |
|
| 529 | $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; |
|
| 530 | } else { |
|
| 531 | $v = (boolean) $v; |
|
| 532 | } |
|
| 533 | } |
|
| 534 | ||
| 535 | if ($this->show_on !== $v) { |
|
| 536 | $this->show_on = $v; |
|
| 537 | $this->modifiedColumns[PageLinkTableMap::COL_SHOW_ON] = true; |
|
| 538 | } |
|
| 539 | ||
| 540 | return $this; |
|
| 541 | } // setShowOn() |
|
| 542 | ||
| 543 | /** |
|
| 544 | * Sets the value of the [permanent] column. |
|
| @@ 553-569 (lines=17) @@ | ||
| 550 | * @param boolean|integer|string $v The new value |
|
| 551 | * @return $this|\mod_link\models\PageLink The current object (for fluent API support) |
|
| 552 | */ |
|
| 553 | public function setPermanent($v) |
|
| 554 | { |
|
| 555 | if ($v !== null) { |
|
| 556 | if (is_string($v)) { |
|
| 557 | $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true; |
|
| 558 | } else { |
|
| 559 | $v = (boolean) $v; |
|
| 560 | } |
|
| 561 | } |
|
| 562 | ||
| 563 | if ($this->permanent !== $v) { |
|
| 564 | $this->permanent = $v; |
|
| 565 | $this->modifiedColumns[PageLinkTableMap::COL_PERMANENT] = true; |
|
| 566 | } |
|
| 567 | ||
| 568 | return $this; |
|
| 569 | } // setPermanent() |
|
| 570 | ||
| 571 | /** |
|
| 572 | * Indicates whether the columns in this object are only set to default values. |
|