Example #1
0
 public function save()
 {
     parent::save();
     if (!empty($this->_targets)) {
         foreach ($this->_targets as $target) {
             $target->save();
         }
     }
 }
Example #2
0
 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();
 }
Example #3
0
 public function save()
 {
     $this->hash = CryptoTool::sault(12);
     parent::save();
 }