Ejemplo n.º 1
0
 public function offsetSet($attribute, $value)
 {
     if ($attribute == 'name' || $attribute == 'value') {
         $this->pop_image[$attribute] = $value;
         return;
     }
     parent::offsetSet($attribute, $value);
 }
Ejemplo n.º 2
0
 public function offsetSet($offset, $value)
 {
     if ($offset == 'name') {
         foreach ($this->elements as $identifier => $element) {
             $element['name'] = $value . '[' . $identifier . ']';
         }
     }
     parent::offsetSet($offset, $value);
 }
Ejemplo n.º 3
0
 /**
  * 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;
     }
 }
Ejemplo n.º 4
0
 /**
  * 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);
 }
Ejemplo n.º 5
0
 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);
 }