Example #1
0
 /**
  * Sets an element of the array
  * @param $offset
  * @return unknown_type
  */
 public function offsetset($property, $value)
 {
     $this->ld();
     if (is_array($value) && @$this->_TYPE[$property] === 'CSV') {
         $value = join(',', $value);
     }
     if ($this->offsetGet($property) != $value) {
         global $DB, $Controller;
         $myself = $Controller->{(string) $this->ID}(OVERRIDE);
         if ($DB->settings->update(array('value' => $value), array('id' => $this->ID, 'property' => $property), true)) {
             parent::offsetset($property, $value);
         }
     }
 }