/** * Method to get certain otherwise inaccessible properties from the form field * object. * * @access public * @param string $name The property name for which to the the value. * * * @since 2.0 * * @return mixed The property value or null. */ public function __get($name) { switch ($name) { case 'static': if (empty($this->static)) { $this->static = $this->getStatic(); } return $this->static; break; case 'repeatable': if (empty($this->repeatable)) { $this->repeatable = $this->getRepeatable(); } return $this->repeatable; break; default: return parent::__get($name); } }
?> <td class="center inlist"> <?php $color = isset($item->params->color) && $item->params->color ? $color = str_replace('##', '#', $item->params->color) : 'none'; $element = new SimpleXMLElement('<field name="color_' . $i . '" type="color" control="simple" default="" colors="' . (isset($this->config->main_colors) ? $this->config->main_colors : '') . '" split="4" onchange="setColor(\'cb' . $i . '\', this)" />'); $element->value = $color; $colorfield->setup($element, $color); echo $colorfield->__get('input'); ?> </td> <?php } ?> <td class="has-context"> <div class="pull-left"> <?php if ($item->checked_out) { ?> <?php echo JHtml::_('jgrid.checkedout', $i, $item->editor, $item->checked_out_time, 'modules.', $canCheckin); ?> <?php }