public function save() { parent::save(); if (!empty($this->_targets)) { foreach ($this->_targets as $target) { $target->save(); } } }
public function save() { $this->hash = CryptoTool::sault(12); $this->scriptType = empty($this->scriptId) ? 'local' : 'scalr'; if (!isset($this->orderIndex)) { $this->orderIndex = 10; } if (!isset($this->issync)) { $this->issync = 0; } parent::save(); }
public function save() { $this->hash = CryptoTool::sault(12); parent::save(); }