public function offsetSet($attribute, $value) { if ($attribute == 'name' || $attribute == 'value') { $this->pop_image[$attribute] = $value; return; } parent::offsetSet($attribute, $value); }
public function offsetSet($offset, $value) { if ($offset == 'name') { foreach ($this->elements as $identifier => $element) { $element['name'] = $value . '[' . $identifier . ']'; } } parent::offsetSet($offset, $value); }
/** * Override the method to map the {@link HIDDENS} tag to the {@link $hiddens} property. * * @inheritdoc */ public function offsetSet($attribute, $value) { parent::offsetSet($attribute, $value); if ($attribute == self::HIDDENS) { $this->hiddens = $value; } }
/** * Sets the value of a property. * * The attribute corresponding to the property is set. * * @param string $property * @param mixed $value */ public function offsetSet($property, $value) { $this->element->offsetSet(self::serialize_property($property), $value); }
public function offsetSet($attribute, $value) { global $core; if ($attribute == 'value' && $value && !$value instanceof Photo) { $value = $core->models['images.albums/photos'][$value]; } parent::offsetSet($attribute, $value); }