Beispiel #1
0
 public function saveMyrsc($nCoolType)
 {
     $record = new ApplyRecord();
     $apply = new Apply();
     $apply->setRecord();
     $result = $record->saveRecord($nCoolType, $apply);
     if (!$result) {
         Log::write('RecordTask::saveApply():saveRecord() failed', 'log');
         // 			return false;
     }
     $record->close();
     $queue = new QueueTask();
     $queue->push('apply', $nCoolType, json_encode($apply), 'coolshow_apply_count');
     return true;
 }
 public function metaVersion($sql, $lastVersion)
 {
     if ($this->checkInteractive('Upgrade current version?')) {
         parent::metaVersion($sql, $lastVersion);
     }
 }