| @@ 594-609 (lines=16) @@ | ||
| 591 | * |
|
| 592 | * @return $this |
|
| 593 | */ |
|
| 594 | public function progressBar($useProgressBar = true) |
|
| 595 | { |
|
| 596 | if ($useProgressBar) { |
|
| 597 | $this->progressbar = true; |
|
| 598 | } else { |
|
| 599 | $this->progressbar = false; |
|
| 600 | } |
|
| 601 | ||
| 602 | // If they set this true after saying they want tiny, they actually want small. |
|
| 603 | if ($useProgressBar && $this->getSize() == static::SIZE_TINY) { |
|
| 604 | $this->size(static::SIZE_SMALL); |
|
| 605 | } |
|
| 606 | // If they set this true after saying they want invisible, they're being silly and I refuse to handle it. |
|
| 607 | ||
| 608 | return $this; |
|
| 609 | } |
|
| 610 | ||
| 611 | /** |
|
| 612 | * Get Progress Bar Setting. |
|
| @@ 634-651 (lines=18) @@ | ||
| 631 | * |
|
| 632 | * @return $this |
|
| 633 | */ |
|
| 634 | public function timeCode($useTimeCode = true) |
|
| 635 | { |
|
| 636 | if ($useTimeCode) { |
|
| 637 | // Requires Progress Bar. Sorry. |
|
| 638 | $this->progressBar(); |
|
| 639 | $this->timecode = true; |
|
| 640 | } else { |
|
| 641 | $this->timecode = false; |
|
| 642 | } |
|
| 643 | ||
| 644 | // If they set this true after saying they want tiny, they actually want small. |
|
| 645 | if ($this->progressbar && $this->getSize() == static::SIZE_TINY) { |
|
| 646 | $this->size(static::SIZE_SMALL); |
|
| 647 | } |
|
| 648 | // If they set this true after saying they want invisible, they're being silly and I refuse to handle it. |
|
| 649 | ||
| 650 | return $this; |
|
| 651 | } |
|
| 652 | ||
| 653 | /** |
|
| 654 | * Get Time Code Setting. |
|