@@ 674-679 (lines=6) @@ | ||
671 | * If a string was supplied a string will be returned. |
|
672 | */ |
|
673 | protected function _name($options = array(), $field = null, $key = 'name') { |
|
674 | if ($options === null) { |
|
675 | $options = array(); |
|
676 | } elseif (is_string($options)) { |
|
677 | $field = $options; |
|
678 | $options = 0; |
|
679 | } |
|
680 | ||
681 | if (!empty($field)) { |
|
682 | $this->setEntity($field); |
|
@@ 715-720 (lines=6) @@ | ||
712 | * If a string was supplied a string will be returned. |
|
713 | */ |
|
714 | public function value($options = array(), $field = null, $key = 'value') { |
|
715 | if ($options === null) { |
|
716 | $options = array(); |
|
717 | } elseif (is_string($options)) { |
|
718 | $field = $options; |
|
719 | $options = 0; |
|
720 | } |
|
721 | ||
722 | if (is_array($options) && isset($options[$key])) { |
|
723 | return $options; |
@@ 2636-2641 (lines=6) @@ | ||
2633 | */ |
|
2634 | protected function _name($options = array(), $field = null, $key = 'name') { |
|
2635 | if ($this->requestType === 'get') { |
|
2636 | if ($options === null) { |
|
2637 | $options = array(); |
|
2638 | } elseif (is_string($options)) { |
|
2639 | $field = $options; |
|
2640 | $options = 0; |
|
2641 | } |
|
2642 | ||
2643 | if (!empty($field)) { |
|
2644 | $this->setEntity($field); |