public function __set($name, $value) { $property = strtolower($name); if ($property == 'colspan') { $this->setAttribute('colspan', $value); } else { parent::__set($name, $value); } }
public function __set($name, $value) { $property = strtolower($name); //mtrace('mgrid property = ' . $name . ' value = ' . $value); if (!$value) { return; } if ($property == 'actionupdate') { $this->addActionUpdate($value); } elseif ($property == 'actiondelete') { $this->addActionDelete($value); } elseif ($property == 'actiontext') { $this->addActionText('', $value); } elseif ($property == 'actionicon') { $this->addActionIcon('', $value); } elseif ($property == 'actionselect') { $this->addActionSelect($value); } else { parent::__set($name, $value); } }