| | 142 | /** |
|---|
| | 143 | * Sets the list renderer for the field. |
|---|
| | 144 | * |
|---|
| | 145 | * @param mixed A PHP callable |
|---|
| | 146 | */ |
|---|
| | 147 | public function setRenderer($renderer) |
|---|
| | 148 | { |
|---|
| | 149 | $this->config['renderer'] = $renderer; |
|---|
| | 150 | } |
|---|
| | 151 | |
|---|
| | 152 | /** |
|---|
| | 153 | * Gets the list renderer for the field. |
|---|
| | 154 | * |
|---|
| | 155 | * @return mixed A PHP callable |
|---|
| | 156 | */ |
|---|
| | 157 | public function getRenderer() |
|---|
| | 158 | { |
|---|
| | 159 | return isset($this->config['renderer']) ? $this->config['renderer'] : null; |
|---|
| | 160 | } |
|---|
| | 161 | |
|---|
| | 162 | /** |
|---|
| | 163 | * Sets the list renderer arguments for the field. |
|---|
| | 164 | * |
|---|
| | 165 | * @param array An array of arguments to pass to the renderer |
|---|
| | 166 | */ |
|---|
| | 167 | public function setRendererArguments(array $arguments) |
|---|
| | 168 | { |
|---|
| | 169 | $this->config['renderer_arguments'] = $arguments; |
|---|
| | 170 | } |
|---|
| | 171 | |
|---|
| | 172 | /** |
|---|
| | 173 | * Gets the list renderer arguments for the field. |
|---|
| | 174 | * |
|---|
| | 175 | * @return array An array of arguments to pass to the renderer |
|---|
| | 176 | */ |
|---|
| | 177 | public function getRendererArguments() |
|---|
| | 178 | { |
|---|
| | 179 | return isset($this->config['renderer_arguments']) ? $this->config['renderer_arguments'] : array(); |
|---|
| | 180 | } |
|---|
| | 181 | |
|---|