Exemple #1
0
 public function saveAlbums($nCoolType)
 {
     $record = new AlbumsRecord();
     $albums = new Albums();
     $albums->setRecord();
     $result = $record->saveRecord($nCoolType, $albums);
     if (!$result) {
         Log::write('RecordTask::saveAlbums():saveRecord() failed', 'log');
         // 			return false;
     }
     $record->close();
     $queue = new QueueTask();
     $queue->push('albums', $nCoolType, json_encode($albums), 'coolshow_albums_count');
     return true;
 }