Esempio n. 1
0
 /**
  *
  * @return void
  */
 public function save()
 {
     if ($this->package == 'core') {
         $this->enabled = 1;
     }
     parent::save();
 }
Esempio n. 2
0
 public function save()
 {
     $node = $this->node();
     $node_field = $this->node_field();
     if (!$this->{$node_field}) {
         $this->{$node_field} = $node->identity();
     }
     parent::save();
     $node->version = $this->identity();
     $node->table = $this->table()->tableName();
     $node->class = get_class($this);
     $node->save();
 }
Esempio n. 3
0
 public function save()
 {
     $logger = Zupal_Module_Manager::getInstance()->get('people')->logger();
     if (!$this->isSaved()) {
         $password = $this->password;
     }
     parent::save();
     $logger->info('Person ' . $this->identity() . ' saved');
     $cache = Zupal_Bootstrap::$registry->cache;
     $cache->remove('people_data');
 }
 /**
  *
  */
 public function save()
 {
     if ($this->player_group && !$this->commander) {
         $pg = $this->player_group();
         $this->commander = $pg->get_player()->identity();
     }
     if (!$this->series) {
         $this->_init_series();
     }
     parent::save();
 }
 /**
  *
  * @return <type>
  */
 public function save()
 {
     if (($atom = $this->get_atom()) && $atom->isSaved()) {
         try {
             $atom = $this->get_atom();
             $atom->save();
             foreach ($this->_atom_field_map as $atom_field => $local_field) {
                 $this->{$local_field} = $atom->{$atom_field};
             }
         } catch (Exception $e) {
             error_log(__METHOD__ . ': error deleting atom ' . $e->getMessage());
         }
     }
     parent::save();
 }
Esempio n. 6
0
 /**
  *
  * @return <type>
  */
 public function save()
 {
     parent::save();
     $cache = Zupal_Bootstrap::$registry->cache->remove('roles');
 }
Esempio n. 7
0
 /**
  *
  * @return void
  */
 public function save()
 {
     foreach (Ultimatum_Model_Ultgroups::$_properties as $prop) {
         $this->{$prop} = $this->get_size($prop);
     }
     parent::save();
 }
Esempio n. 8
0
 /**
  *
  * @return <type>
  */
 public function save()
 {
     parent::save();
     if (func_num_args() && func_get_arg(0)) {
         // if there is a true first paremeter skip the resort script.
         // should break recursion
         return;
     }
     if ($this->parent()) {
         $siblings = $this->parent()->children();
     } else {
         $params = array('panel' => $this->panel, 'parent' => 0);
         $siblings = $this->find($params, 'sort_by');
     }
     foreach ($siblings as $new_sort_by => $menu) {
         $menu->save(TRUE);
     }
 }
Esempio n. 9
0
 /**
  *
  * @return <type>
  */
 public function save()
 {
     parent::save();
     $this->get_atomic_id();
 }
Esempio n. 10
0
 /**
  *
  * @return <type>
  */
 public function save()
 {
     $country = $this->getCountry();
     if ($country && $country->identity()) {
         $this->country_id = $country->identity();
         if ($this->getState()->identity()) {
             $this->state_id = $this->getState()->identity();
         } elseif ($this->state) {
             $state = new Zupal_Places_States();
             $state->set_value($this->state);
             $state->country = $this->country_id;
             $state->save();
             $this->state_id = $state->identity();
         }
         if ($this->getstate()->identity()) {
             $this->state_id = $this->getstate()->identity();
         }
     }
     parent::save();
 }